import React from 'react'; export interface ServiceParams { route: string; name: string; nameSingular: string; tableFields: any[]; Form: React.FC; default: Record; } const ServiceContext = React.createContext({ route: '', name: '', nameSingular: '', tableFields: [], Form: () => null, }); export const ServiceProvider = ServiceContext.Provider; export default ServiceContext;