import { FieldType } from "../constants/fields"; import { Field } from "../services/field"; export default function useField(fieldDetail: any, type: FieldType, isSchema: boolean): { field: Field | undefined; onFieldChange: (key: string, val: any) => void; onFieldBlur: (key: string) => void; };