"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const designSystem = require("@choiceform/design-system");
const iconsReact = require("@choiceform/icons-react");
const React = require("react");
const index = require("../../../../i18n/index.cjs");
const MessageSummaryTv = designSystem.tcv({
  slots: {
    root: "summary-message flex flex-col gap-2",
    content: "flex items-center gap-1 font-strong",
    icon: "text-icon-secondary flex size-5 items-center justify-center",
    description: ""
  }
});
const MessageSummary = React.memo(function MessageSummary2(props) {
  const { children, className } = props;
  const tv = MessageSummaryTv();
  const title = index.t("response", "summary-title");
  const content = typeof children === "string" ? children : children?.toString();
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: designSystem.tcx(tv.root(), className), children: [
    /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tv.content(), children: [
      /* @__PURE__ */ jsxRuntime.jsx("div", { className: tv.icon(), children: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.FileDocument, {}) }),
      /* @__PURE__ */ jsxRuntime.jsx("span", { children: title })
    ] }),
    /* @__PURE__ */ jsxRuntime.jsx("div", { className: tv.description(), children: content && /* @__PURE__ */ jsxRuntime.jsx(designSystem.MdRender, { content }) })
  ] });
});
exports.MessageSummary = MessageSummary;
//# sourceMappingURL=message-summary.cjs.map
