"use client";
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_MenuRadioGroup_context = require("./MenuRadioGroup.context.cjs");
let _mantine_hooks = require("@mantine/hooks");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Menu/MenuRadioGroup/MenuRadioGroup.tsx
function MenuRadioGroup(_props) {
	const { value, defaultValue, onChange, children } = require_use_props.useProps("MenuRadioGroup", null, _props);
	const [_value, setValue] = (0, _mantine_hooks.useUncontrolled)({
		value,
		defaultValue,
		finalValue: null,
		onChange
	});
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MenuRadioGroup_context.MenuRadioGroupContext, {
		value: {
			value: _value,
			onChange: (next) => setValue(next)
		},
		children
	});
}
MenuRadioGroup.displayName = "@mantine/core/MenuRadioGroup";
//#endregion
exports.MenuRadioGroup = MenuRadioGroup;

//# sourceMappingURL=MenuRadioGroup.cjs.map