* feature(auth): replace clerk.com with custom auth * minor fixes * remove notification preferences * decrease live events interval fix(api): cookies.. # Conflicts: # .gitignore # apps/api/src/index.ts # apps/dashboard/src/app/providers.tsx # packages/trpc/src/trpc.ts
18 lines
362 B
TypeScript
18 lines
362 B
TypeScript
'use client';
|
|
|
|
import { LogOutIcon } from 'lucide-react';
|
|
|
|
import { useLogout } from '@/hooks/useLogout';
|
|
import { Button } from './ui/button';
|
|
|
|
const SignOutButton = () => {
|
|
const logout = useLogout();
|
|
return (
|
|
<Button variant={'secondary'} icon={LogOutIcon} onClick={() => logout()}>
|
|
Sign out
|
|
</Button>
|
|
);
|
|
};
|
|
|
|
export default SignOutButton;
|