import React from 'react' import { Input, Textarea } from '@/components/ui' import { FieldType } from '@/types' export interface FormFieldDef { id: string label: string type: FieldType hint?: string | null options: string[] required: boolean } export function FieldRenderer({ field, value, onChange }: { field: FormFieldDef value: any onChange: (v: any) => void }) { switch (field.type) { case 'SHORT_TEXT': return onChange(e.target.value)} placeholder={field.hint || ''}/> case 'LONG_TEXT': return