Files
stats/apps/dashboard/src/components/sign-out-button.tsx
Carl-Gerhard Lindesvärd d31d9924a5 feature(auth): replace clerk.com with custom auth (#103)
* 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
2024-12-20 22:23:07 +01:00

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;