ai-chatbot/components/sign-out-form.tsx
Your Name 53ddb7e585
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Initial commit - clean repository
2025-12-17 20:15:18 +08:00

26 lines
446 B
TypeScript

import Form from "next/form";
import { signOut } from "@/app/(auth)/auth";
export const SignOutForm = () => {
return (
<Form
action={async () => {
"use server";
await signOut({
redirectTo: "/",
});
}}
className="w-full"
>
<button
className="w-full px-1 py-0.5 text-left text-red-500"
type="submit"
>
Sign out
</button>
</Form>
);
};