aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(dash)/header/signOutButton.tsx
blob: 4c61c74de8c5a75158e94a60e1a3ca77516d3078 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>
	);
}