"use client";
import { j as o } from "../../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import e from "../../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import s from "./index.module.scss.mjs";
function c({
  children: l,
  isOpen: a,
  onClose: m,
  className: i,
  ...r
}) {
  return /* @__PURE__ */ o.jsxs(
    "div",
    {
      ...r,
      className: e(
        s.container,
        {
          [s.open]: a
        },
        i
      ),
      children: [
        /* @__PURE__ */ o.jsx(
          "div",
          {
            className: e(s.overlay, {
              [s.disabled]: !a
            }),
            onClick: m
          }
        ),
        /* @__PURE__ */ o.jsx(
          "div",
          {
            className: e(s.modal, {
              [s.modalOpen]: a
            }),
            children: l
          }
        )
      ]
    }
  );
}
export {
  c as default
};
//# sourceMappingURL=index.mjs.map
