18 lines
345 B
TypeScript
18 lines
345 B
TypeScript
"use client";
|
|
|
|
import { signOut } from "next-auth/react";
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
export function SignOutButton() {
|
|
return (
|
|
<Button
|
|
variant="secondary"
|
|
className="dashboard-action"
|
|
type="button"
|
|
onClick={() => signOut({ callbackUrl: "/login" })}
|
|
>
|
|
Sign out
|
|
</Button>
|
|
);
|
|
}
|