This commit is contained in:
2026-03-02 21:28:37 -06:00
parent 314a96f2c5
commit 59e50421d3
21 changed files with 877 additions and 72 deletions

View File

@@ -0,0 +1,18 @@
'use client'
import { useRouter } from 'next/navigation'
import { createClient } from '@/lib/client'
import { Button } from '@/components/ui/button'
export function LogoutButton() {
const router = useRouter()
const logout = async () => {
const supabase = createClient()
await supabase.auth.signOut()
router.push('/auth/login')
}
return <Button onClick={logout}>Logout</Button>
}