ai-bot/app/_ui/LoginState.tsx

20 lines
495 B
TypeScript
Raw Normal View History

import { logout } from "../_lib/actions/auth";
export default function LoginState() {
return (
<div className="flex gap-2 items-center">
<span>
<form action={async () => {
"use server";
await logout()
}}>
<button className="text-sm border-b border-sky-300 hover:border-b-2 font-normal">退</button>
</form>
</span>
</div>
)
}