context.tsx 282 B

12345678910
  1. import React from 'react';
  2. interface ConfigureContextType {
  3. value: any;
  4. onChange: (value: any, init?: boolean) => void;
  5. onRemove: (field: string) => void
  6. }
  7. const Context = React.createContext<ConfigureContextType>({} as any);
  8. export { Context, ConfigureContextType };