import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from "react";
const radioContext = createContext({});
function RadioProvider(props) {
    const { children, size, isError, handleChange, value, disabled } = props;
    return (_jsx(radioContext.Provider, { value: { handleChange, value, size, isError, disabled }, children: children }));
}
function useRadioGroup() {
    return useContext(radioContext);
}
export { RadioProvider, useRadioGroup };
