import * as o from "react";
import f from "../../../@ant-design/icons/es/icons/CheckCircleFilled.mjs";
import p from "../../../@ant-design/icons/es/icons/CloseCircleFilled.mjs";
import u from "../../../@ant-design/icons/es/icons/CloseOutlined.mjs";
import d from "../../../@ant-design/icons/es/icons/ExclamationCircleFilled.mjs";
import b from "../../../@ant-design/icons/es/icons/InfoCircleFilled.mjs";
import i from "../../../classnames/index.mjs";
import "../../../rc-notification/es/Notifications.mjs";
globalThis && globalThis.__rest;
function h(r, e) {
  return e === null || e === !1 ? null : e || /* @__PURE__ */ o.createElement("span", {
    className: `${r}-close-x`
  }, /* @__PURE__ */ o.createElement(u, {
    className: `${r}-close-icon`
  }));
}
const y = {
  success: f,
  info: b,
  error: p,
  warning: d
}, w = (r) => {
  const {
    prefixCls: e,
    icon: n,
    type: t,
    message: l,
    description: s,
    btn: a,
    role: m = "alert"
  } = r;
  let c = null;
  return n ? c = /* @__PURE__ */ o.createElement("span", {
    className: `${e}-icon`
  }, n) : t && (c = /* @__PURE__ */ o.createElement(y[t] || null, {
    className: i(`${e}-icon`, `${e}-icon-${t}`)
  })), /* @__PURE__ */ o.createElement("div", {
    className: i({
      [`${e}-with-icon`]: c
    }),
    role: m
  }, c, /* @__PURE__ */ o.createElement("div", {
    className: `${e}-message`
  }, l), /* @__PURE__ */ o.createElement("div", {
    className: `${e}-description`
  }, s), a && /* @__PURE__ */ o.createElement("div", {
    className: `${e}-btn`
  }, a));
};
export {
  w as PureContent,
  h as getCloseIcon
};
