aboutsummaryrefslogtreecommitdiff
path: root/web/src/app/components/sign-out.jsx
blob: b0762d802a7cd4b2975403849f9de3d5a9cb9fec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use client';
import { useAuth } from '@/context/middleware';

export default function SignOut() {
    const { logout } = useAuth();

    return (
        <button
            type="button"
            onClick={logout}
            className="py-2 px-4 rounded-md text-md bg-red-700 hover:bg-red-500"
        >
            Sign out
        </button>
    );
}