import React from 'react';
import { FormikProps } from 'formik';

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

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

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