import React from 'react'; import type { CheckboxOptionType, CheckboxValueType } from './Group'; export interface CheckboxGroupContext { name?: string; toggleOption?: (option: CheckboxOptionType) => void; value?: any; disabled?: boolean; registerValue: (val: T) => void; cancelValue: (val: T) => void; } const GroupContext = React.createContext(null); export default GroupContext;