diff options
Diffstat (limited to 'apps/web/app/(dash)/header/signOutButton.tsx')
| -rw-r--r-- | apps/web/app/(dash)/header/signOutButton.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/web/app/(dash)/header/signOutButton.tsx b/apps/web/app/(dash)/header/signOutButton.tsx new file mode 100644 index 00000000..4c61c74d --- /dev/null +++ b/apps/web/app/(dash)/header/signOutButton.tsx @@ -0,0 +1,22 @@ +import { signOut } from "@/server/auth"; +import { Button } from "@repo/ui/shadcn/button"; + +export default function SignOutButton() { + return ( + <form + action={async () => { + "use server"; + await signOut(); + }} + > + <Button + variant="ghost" + size="sm" + type="submit" + className="text-[#7D8994]" + > + Sign Out + </Button> + </form> + ); +} |