"use client"; import { useAction } from "@/hooks/useAction"; import { logout } from "@/lib/user/actions"; import { Button } from "@/components/ui/button"; import { Spinner } from "@/components/ui/spinner"; export function LogoutButton() { const { run, isPending } = useAction(logout); return ( ); }