export function Auth({ actionText, onSubmit, status, afterSubmit, }: { actionText: string onSubmit: (e: React.FormEvent) => void status: 'pending' | 'idle' | 'success' | 'error' afterSubmit?: React.ReactNode }) { return (

{actionText}

{ e.preventDefault() onSubmit(e) }} className="space-y-4" >
{afterSubmit ? afterSubmit : null}
) }