import { createContext } from 'react'; import { FieldDefinition } from '../types/FieldDefinition'; import { FieldMetadata } from '../types/FieldMetadata'; export type GenericFieldContextType = { fieldDefinition: FieldDefinition; // TODO: add better typing for mutation web-hook useUpdateEntityMutation?: () => [(params: any) => void, any]; entityId: string; recoilScopeId?: string; hotkeyScope: string; isLabelIdentifier: boolean; basePathToShowPage?: string; }; export const FieldContext = createContext( {} as GenericFieldContextType, );