"use client";
import { j as s } from "../../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import a from "../../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import "react";
import { ReactComponent as c } from "../../../assets/images/CloseModalIcon.svg.mjs";
import i from "../ModalAnimation/index.mjs";
import n from "./Modal.module.scss.mjs";
const m = ({ className: o, ...t }) => /* @__PURE__ */ s.jsx("div", { className: a(o, n.header), ...t }), d = ({ className: o, ...t }) => /* @__PURE__ */ s.jsx("div", { className: a("body", n.subtitle, o), ...t }), u = ({ className: o, ...t }) => /* @__PURE__ */ s.jsx("div", { className: a(o, n.headingIcon), ...t }), x = ({ className: o, ...t }) => /* @__PURE__ */ s.jsx("h6", { className: a(o, n.title), ...t }), r = (o) => /* @__PURE__ */ s.jsx("button", { type: "button", className: n.close, ...o, children: /* @__PURE__ */ s.jsx(c, {}) }), j = ({ className: o, children: t, ...l }) => /* @__PURE__ */ s.jsx("div", { className: a(o, n.root), ...l, children: t }), e = (o) => {
  var t;
  return /* @__PURE__ */ s.jsx(i, { ...o, children: /* @__PURE__ */ s.jsxs(e.Root, { className: (t = o.classNames) == null ? void 0 : t.root, children: [
    o.withCloseButton && /* @__PURE__ */ s.jsx(r, { onClick: o.onClose }),
    o.children
  ] }) });
};
e.Root = j;
e.Body = d;
e.Title = x;
e.CloseButton = r;
e.Header = m;
e.HeadingIcon = u;
export {
  e as default
};
//# sourceMappingURL=index.mjs.map
