'use client'; import { logoutAction } from '@/lib/actions/auth'; import { useActionState } from 'react'; import { Button } from '@/components/ui/Button'; export default function LogoutButton() { const [, formAction] = useActionState(logoutAction, null); return (
); }