UNPKG

fui-fancyui

Version:
33 lines (32 loc) 807 B
"use client"; import { jsx as t } from "react/jsx-runtime"; import { StyledSystemMessageWrapper as p } from "./SystemMessage.style.js"; import i from "../Typography/Typography.js"; function u(r) { const { themeType: s = "error", layer: a, systemMessageType: o, children: l, textSettings: e = { textAlign: "left" }, externalStyle: n, showMessage: y = !0, ...m } = r; return /* @__PURE__ */ t( p, { $themeType: s, $layer: a, $systemMessageType: o, $externalStyle: n, $fontVariant: (e == null ? void 0 : e.variant) ?? "subTextFootnote", role: "alert", ...m, children: !!y && /* @__PURE__ */ t(i, { variant: "subTextFootnote", tabIndex: -1, lineHeight: 1, ...e, children: l }) } ); } export { u as default };