import { XCircle } from 'lucide-react'; interface FormErrorsProps { id: string; errors?: Record; } export const FormErrors = ({ id, errors }: FormErrorsProps) => { if (!errors) return null; return (
{errors?.[id]?.map((error: string) => (
{error}
))}
); };