import React from 'react'; type FieldType = 'text' | 'email' | 'tel' | 'number' | 'textarea'; interface FormFieldProps { type: FieldType; placeholder?: string; value?: string; onChange?: ( e: React.ChangeEvent, ) => void; name?: string; } const FormField: React.FC = ({ type, placeholder, value, onChange, name, }) => { const commonClass = 'w-full rounded-lg border border-gray-300 p-3 focus:ring-2 focus:ring-red-500 focus:outline-none'; if (type === 'textarea') { return (