"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
require("react");
require("clsx");
const useProps = require("../../core/MantineProvider/use-props/use-props.cjs");
const factory = require("../../core/factory/factory.cjs");
const ModalBaseContent = require("../ModalBase/ModalBaseContent.cjs");
const NativeScrollArea = require("../ModalBase/NativeScrollArea.cjs");
const Drawer_context = require("./Drawer.context.cjs");
const Drawer_module_css = require("./Drawer.module.css.cjs");
const defaultProps = {};
const DrawerContent = factory.factory((_props, ref) => {
  const props = useProps.useProps("DrawerContent", defaultProps, _props);
  const { classNames, className, style, styles, vars, children, radius, __hidden, ...others } = props;
  const ctx = Drawer_context.useDrawerContext();
  const Scroll = ctx.scrollAreaComponent || NativeScrollArea.NativeScrollArea;
  return /* @__PURE__ */ jsxRuntime.jsx(
    ModalBaseContent.ModalBaseContent,
    {
      ...ctx.getStyles("content", { className, style, styles, classNames }),
      innerProps: ctx.getStyles("inner", { className, style, styles, classNames }),
      ref,
      ...others,
      radius: radius || ctx.radius || 0,
      "data-hidden": __hidden || void 0,
      children: /* @__PURE__ */ jsxRuntime.jsx(Scroll, { style: { height: "calc(100vh - var(--drawer-offset) * 2)" }, children })
    }
  );
});
DrawerContent.classes = Drawer_module_css.default;
DrawerContent.displayName = "@mantine/core/DrawerContent";
exports.DrawerContent = DrawerContent;
