import { Controller, useFormContext, useWatch } from 'react-hook-form'; import { Label, TextArea, TextInput } from '@/components/input'; import { useDialogsStore } from '@/stores/dialogs'; import { type ICreateSynthesisDTO } from '../../backend/types'; import { PickMultiOperation } from '../../components/pick-multi-operation'; import { SelectParent } from '../../components/select-parent'; import { type DlgCreateSynthesisProps } from './dlg-create-synthesis'; export function TabArguments() { const { manager } = useDialogsStore(state => state.props as DlgCreateSynthesisProps); const { register, control, formState: { errors } } = useFormContext(); const inputs = useWatch({ control, name: 'arguments' }); return (
( field.onChange(value ? value.id : null)} /> )} />