import React from 'react';

export interface ServiceParams {
  route: string;
  name: string;
  nameSingular: string;
  tableFields: any[];
  Form: React.FC<any>;
  default: Record<string, any>;
}

const ServiceContext = React.createContext<ServiceParams>({
  route: '',
  name: '',
  nameSingular: '',
  tableFields: [],
  Form: () => null,
});

export const ServiceProvider = ServiceContext.Provider;
export default ServiceContext;
