import { Context, createContext, useContext } from 'react'; type RadioGroupContextType = { parentName: string; }; const initialContextState = { parentName: '', } as const; const context: Context = createContext(initialContextState); const RadioGroupContextProvider = context.Provider; function useRadioGroupContext(): RadioGroupContextType { const contextContent = useContext(context); return contextContent; } export { RadioGroupContextProvider, useRadioGroupContext };