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