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 { useDrawerContext } from "./Drawer.context.mjs";
import classes from "./Drawer.module.css.mjs";
const defaultProps = {};
const DrawerHeader = factory((_props, ref) => {
  const props = useProps("DrawerHeader", defaultProps, _props);
  const { classNames, className, style, styles, vars, ...others } = props;
  const ctx = useDrawerContext();
  return /* @__PURE__ */ jsx(
    ModalBaseHeader,
    {
      ref,
      ...ctx.getStyles("header", { classNames, style, styles, className }),
      ...others
    }
  );
});
DrawerHeader.classes = classes;
DrawerHeader.displayName = "@mantine/core/DrawerHeader";
export {
  DrawerHeader
};
