UNPKG

@coko/client

Version:

Client side common code for coko apps

34 lines (33 loc) 762 B
import { grid as e } from "../../toolkit/themeHelper.js"; import "../../toolkit/index.js"; import t from "../common/List.js"; import n from "./ChatMessage.js"; import "react"; import r from "styled-components"; import { jsx as i } from "react/jsx-runtime"; //#region src/ui/chat/ChatMessageList.tsx var a = r.div` li:not(:last-child) { margin-bottom: ${e(2)}; } `, o = (e) => { let { className: r, messages: o = [] } = e; return /* @__PURE__ */ i(a, { className: r, children: /* @__PURE__ */ i(t, { dataSource: o, renderItem: (e) => { let t = e; return /* @__PURE__ */ i(n, { content: t.content, date: t.date, id: t.id, own: t.own, user: t.user }); } }) }); }; //#endregion export { o as default };