UNPKG

@coko/client

Version:

Client side common code for coko apps

21 lines (20 loc) 613 B
import { grid as e } from "../../toolkit/themeHelper.js"; import "../../toolkit/index.js"; import t from "./ChatInput.js"; import n from "./ChatMessageList.js"; import r from "styled-components"; import { jsx as i, jsxs as a } from "react/jsx-runtime"; //#region src/ui/chat/ChatThread.tsx var o = r.div` > div:first-child { margin-bottom: ${e(5)}; } `, s = (e) => { let { className: r, messages: s = [], onSend: c } = e; return /* @__PURE__ */ a(o, { className: r, children: [/* @__PURE__ */ i(n, { messages: s }), /* @__PURE__ */ i(t, { onSend: c })] }); }; //#endregion export { s as default };