UNPKG

fui-fancyui

Version:
31 lines (30 loc) 1.03 kB
"use client"; import { jsx as o, jsxs as c } from "react/jsx-runtime"; import t from "../../molecules/FancyContent/FancyContent.js"; import y from "../../atoms/SystemMessageBox/SystemMessageBox.js"; import { sizes as f } from "./sizeSettings.js"; import { getIcon as g } from "./utils/SystemMessageIcon.js"; function M(m) { const { icon: n, layer: a, sizeC: e = "sm", themeType: s = "error", title: r, description: i, gapBetweenText: l, gapBetweenIcon: p, useFuiIcons: d = !0 } = m, u = g(s); return /* @__PURE__ */ o(y, { themeType: s, layer: a, sizeC: f[e].systemMessageSize, children: /* @__PURE__ */ c(t, { layoutMode: "normal", gapBetweenText: l, gapBetweenIcon: p ?? "3xs", children: [ (n || d) && /* @__PURE__ */ c(t.Icon, { sizeC: e, children: [ " ", n ?? /* @__PURE__ */ o(u, {}) ] }), r && /* @__PURE__ */ o(t.Title, { sizeC: e, children: r }), i && /* @__PURE__ */ o(t.Description, { sizeC: e, children: i }) ] }) }); } export { M as default };