import { createContext } from 'react' ; export interface RadioContextValue { checked : string ; setChecked : ( value : string ) => void ; name : string | undefined ; error : boolean | undefined ; } const defaultValue = { checked : '' , setChecked : ( ) => { } , name : undefined , error : false , } ; const RadioContext = createContext ( defaultValue ) ; export default RadioContext ;