"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const React = require("react");
const clsx = require("clsx");
const Box = require("../../core/Box/Box.cjs");
const ModalBase_context = require("./ModalBase.context.cjs");
const useModalBodyId = require("./use-modal-body-id.cjs");
const ModalBase_module_css = require("./ModalBase.module.css.cjs");
const ModalBaseBody = React.forwardRef(
  ({ className, ...others }, ref) => {
    const bodyId = useModalBodyId.useModalBodyId();
    const ctx = ModalBase_context.useModalBaseContext();
    return /* @__PURE__ */ jsxRuntime.jsx(
      Box.Box,
      {
        ref,
        ...others,
        id: bodyId,
        className: clsx({ [ModalBase_module_css.default.body]: !ctx.unstyled }, className)
      }
    );
  }
);
ModalBaseBody.displayName = "@mantine/core/ModalBaseBody";
exports.ModalBaseBody = ModalBaseBody;
