UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

30 lines (29 loc) 673 B
"use client"; import { jsxs as c, jsx as o } from "react/jsx-runtime"; import { ChatMessage as f } from "./chat-message.js"; import { TypingIndicator as p } from "./typing-indicator.js"; function d({ messages: r, showTimeStamps: e = !0, isTyping: n = !1, messageOptions: t }) { return /* @__PURE__ */ c("div", { className: "space-y-4 overflow-visible", children: [ r.map((i, a) => { const s = typeof t == "function" ? t(i) : t; return /* @__PURE__ */ o( f, { showTimeStamp: e, ...i, ...s }, a ); }), n && /* @__PURE__ */ o(p, {}) ] }); } export { d as MessageList };