import React from 'react'; import { FormikProps } from 'formik'; export interface PanelProps { item: any; mutate: (item: any) => void; } type Route = Record; export interface ServiceParams { route: string; name: string; nameSingular: string; tableFields: any[]; default: Record; routes?: Route[]; Form?: React.FC; Panel?: React.FC; } const ServiceContext = React.createContext({ route: '', name: '', nameSingular: '', tableFields: [], default: {}, }); export const ServiceProvider = ServiceContext.Provider; export default ServiceContext;