import { Controller, useFormContext } from 'react-hook-form'; import { TextArea, TextInput } from '@/components/input'; import { type IUpdateOperationDTO } from '../../backend/types'; import { SelectParent } from '../../components/select-parent'; import { type IOperationSchema } from '../../models/oss'; interface TabOperationProps { oss: IOperationSchema; } export function TabOperation({ oss }: TabOperationProps) { const { register, control, formState: { errors } } = useFormContext(); return (
( field.onChange(value ? value.id : null)} /> )} />