context.ts 466 B

1234567891011121314
  1. import React from 'react';
  2. import { BasicCheckboxEvent } from '@douyinfe/semi-foundation/checkbox/checkboxFoundation';
  3. type CheckboxContextType = {
  4. checkboxGroup?: {
  5. onChange: (evt: BasicCheckboxEvent) => void;
  6. value: any[];
  7. disabled: boolean;
  8. name: any;
  9. isCardType: boolean;
  10. isPureCardType: boolean;
  11. };
  12. };
  13. const Context = React.createContext<CheckboxContextType>({});
  14. export { Context, CheckboxContextType };