"use client";
import { j as t } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import "react";
import { ReactComponent as g } from "../../assets/images/CheckmarkCircleOutline.svg.mjs";
import { ReactComponent as x } from "../../assets/images/CloseButton.svg.mjs";
import { ReactComponent as C } from "../../assets/images/InfoIcon.svg.mjs";
import { ReactComponent as a } from "../../assets/images/AlertTriangle.svg.mjs";
import { ReactComponent as j } from "../../assets/images/AlertOctagon.svg.mjs";
import { ReactComponent as m } from "../../assets/images/LightningOutlined.svg.mjs";
import r from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import h from "../Button/index.mjs";
import n from "./index.module.scss.mjs";
const v = {
  warning: a,
  danger: j,
  info: C,
  success: g,
  neutral: m,
  brand: m
}, z = ({
  variant: e = "info",
  message: p,
  button: i,
  showClose: l = !0,
  onClose: c,
  classNames: o,
  className: u,
  ...d
}) => {
  const f = v[e];
  return /* @__PURE__ */ t.jsxs(
    "div",
    {
      className: r(n.base, n[e], u, o == null ? void 0 : o.root),
      ...d,
      children: [
        /* @__PURE__ */ t.jsxs("div", { className: n.container, children: [
          /* @__PURE__ */ t.jsxs("div", { className: n.content, children: [
            /* @__PURE__ */ t.jsx(f, { className: r(n.icon, o == null ? void 0 : o.icon) }),
            /* @__PURE__ */ t.jsx("p", { className: r(n.message, "eyebrow", o == null ? void 0 : o.message), children: p })
          ] }),
          i ? /* @__PURE__ */ t.jsx(
            h,
            {
              type: "secondary-neutral",
              size: "small",
              onClick: c,
              className: n.button,
              children: i
            }
          ) : null
        ] }),
        l ? /* @__PURE__ */ t.jsx(
          "button",
          {
            type: "button",
            className: r(n.closeButton, o == null ? void 0 : o.closeButton),
            onClick: c,
            "aria-label": "Close",
            children: /* @__PURE__ */ t.jsx(x, {})
          }
        ) : null
      ]
    }
  );
};
export {
  z as default
};
//# sourceMappingURL=index.mjs.map
