mirror of
https://github.com/michivonah/rss-reader.git
synced 2025-12-22 20:46:28 +01:00
18 lines
No EOL
401 B
TypeScript
18 lines
No EOL
401 B
TypeScript
import { signOut } from "@/auth";
|
|
import { LogOut } from "lucide-react";
|
|
|
|
export function SignOut() {
|
|
return (
|
|
<form
|
|
action={async () => {
|
|
"use server";
|
|
await signOut();
|
|
}}
|
|
>
|
|
<button className="flex flex-row items-center gap-2 cursor-pointer w-full" type="submit">
|
|
<LogOut size={16} />
|
|
<span>Log out</span>
|
|
</button>
|
|
</form>
|
|
)
|
|
} |