import { jsx } from "react/jsx-runtime";
import "react";
import "clsx";
import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs";
import { factory } from "../../core/factory/factory.mjs";
import { ModalBaseHeader } from "../ModalBase/ModalBaseHeader.mjs";
import { useModalContext } from "./Modal.context.mjs";
import classes from "./Modal.module.css.mjs";
const defaultProps = {};
const ModalHeader = factory((_props, ref) => {
  const props = useProps("ModalHeader", defaultProps, _props);
  const { classNames, className, style, styles, vars, ...others } = props;
  const ctx = useModalContext();
  return /* @__PURE__ */ jsx(
    ModalBaseHeader,
    {
      ref,
      ...ctx.getStyles("header", { classNames, style, styles, className }),
      ...others
    }
  );
});
ModalHeader.classes = classes;
ModalHeader.displayName = "@mantine/core/ModalHeader";
export {
  ModalHeader
};
