import { Form, Input } from 'antd'; import { Controller } from 'react-hook-form'; type FormInputProps = { control: any; name: string; label: string; placeholder?: string; addonAfter?: string; type?: string; }; export function FormInput({ control, name, label, placeholder, addonAfter, type = 'text' }: FormInputProps) { return ( ( )} /> ); }