blob: 26029368217197e7c3cde898d7192a0f02c2c275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import React from 'react';
export interface ServiceParams {
route: string;
name: string;
nameSingular: string;
tableFields: any[];
Form: React.FC<any>;
}
const ServiceContext = React.createContext<ServiceParams>({
route: '',
name: '',
nameSingular: '',
tableFields: [],
Form: () => null,
});
export const ServiceProvider = ServiceContext.Provider;
export default ServiceContext;
|