"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 ModalBase_module_css = require("./ModalBase.module.css.cjs");
const ModalBaseHeader = React.forwardRef(
  ({ className, ...others }, ref) => {
    const ctx = ModalBase_context.useModalBaseContext();
    return /* @__PURE__ */ jsxRuntime.jsx(
      Box.Box,
      {
        component: "header",
        ref,
        className: clsx({ [ModalBase_module_css.default.header]: !ctx.unstyled }, className),
        ...others
      }
    );
  }
);
ModalBaseHeader.displayName = "@mantine/core/ModalBaseHeader";
exports.ModalBaseHeader = ModalBaseHeader;
