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