import { createContext } from 'react' ; export interface IRadioGroupContext { value : string | number | undefined ; name : string ; onChange : ( value : string | number ) => any ; } export const RadioGroupContext = createContext < IRadioGroupContext | undefined > ( undefined ) ;