import { createContext } from 'react'; import { IRadioEvent } from './AbstractRadio'; export interface IRadioContext { value: Value | undefined; isValueEqual(a: Value | undefined, b: Value | undefined): boolean; disabled: boolean; readOnly: boolean; onRadioChange: ((e: IRadioEvent) => void) | null | undefined; } const context = createContext | null>(null); context.displayName = 'RadioGroupContext'; export default context;