'use client'; import { Button } from '@/components/ui'; import { type ComponentProps } from 'react'; import { useFormStatus } from 'react-dom'; import { Loader2 } from 'lucide-react'; type Props = ComponentProps & { disabled?: boolean; pendingText?: string; }; export const SubmitButton = ({ children, disabled = false, pendingText = 'Submitting...', ...props }: Props) => { const { pending } = useFormStatus(); return ( ); };