import React from 'react'; import { cn } from '@/lib/utils'; interface AuthFormFieldProps { label: string; error?: string; required?: boolean; helpText?: string; children: React.ReactNode; className?: string; htmlFor?: string; } export function AuthFormField({ label, error, required = false, helpText, children, className, htmlFor, }: AuthFormFieldProps) { const fieldId = htmlFor || `auth-field-${Math.random().toString(36).substr(2, 9)}`; return (
{helpText}
)} {error && ({error}
)}