"use client";
const require_use_props = require("../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../core/factory/factory.cjs");
const require_ModalBaseContent = require("../ModalBase/ModalBaseContent.cjs");
const require_NativeScrollArea = require("../ModalBase/NativeScrollArea.cjs");
const require_Drawer_context = require("./Drawer.context.cjs");
const require_Drawer_module = require("./Drawer.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Drawer/DrawerContent.tsx
const DrawerContent = require_factory.factory((_props) => {
	const { classNames, className, style, styles, vars, children, radius, __hidden, ...others } = require_use_props.useProps("DrawerContent", null, _props);
	const ctx = require_Drawer_context.useDrawerContext();
	const Scroll = ctx.scrollAreaComponent || require_NativeScrollArea.NativeScrollArea;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ModalBaseContent.ModalBaseContent, {
		...ctx.getStyles("content", {
			className,
			style,
			styles,
			classNames
		}),
		innerProps: ctx.getStyles("inner", {
			className,
			style,
			styles,
			classNames
		}),
		...others,
		radius: radius || ctx.radius || 0,
		"data-hidden": __hidden || void 0,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Scroll, {
			style: { height: "calc(100vh - var(--drawer-offset) * 2)" },
			children
		})
	});
});
DrawerContent.classes = require_Drawer_module.default;
DrawerContent.displayName = "@mantine/core/DrawerContent";
//#endregion
exports.DrawerContent = DrawerContent;

//# sourceMappingURL=DrawerContent.cjs.map