Scaffold web app
This commit is contained in:
15
src/lib/components/SignOut.tsx
Normal file
15
src/lib/components/SignOut.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use client'
|
||||
|
||||
import { signOut } from '~/auth/actions'
|
||||
|
||||
export function SignOutButton() {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className="underline underline-offset-4"
|
||||
onClick={async () => signOut({ redirect: '/signin' })}
|
||||
>
|
||||
Sign Out
|
||||
</button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user