import { Control, FieldErrors } from 'react-hook-form'; import { useTranslation } from '@/hooks/useI18n.tsx'; import { resourceCategorySchema } from '@/schemas/category.ts'; import { OrganizationFormData } from '@/types.ts'; import DynamicFieldArray from '@/components/form/DynamicFieldArray.tsx'; import FormField from '@/components/form/FormField.tsx'; import Input from '@/components/ui/Input.tsx'; import Select from '@/components/ui/Select.tsx'; interface Step2Props { control: Control; errors: FieldErrors; } const Step2 = ({ control, errors }: Step2Props) => { const { t } = useTranslation(); const categories = resourceCategorySchema.options; return (
{(index) => (
{(field) => ( )}
{(field) => ( )} {(field) => ( )}
{(field) => ( )}
)}
{(index) => (
{(field) => ( )}
{(field) => ( )} {(field) => ( )}
{(field) => ( )}
)}
); }; export default Step2;