@coko/client
Version:
Client side common code for coko apps
30 lines (28 loc) • 727 B
JavaScript
import e from "../common/Input.js";
import "../common/index.js";
import { useState as t } from "react";
import n from "styled-components";
import { jsx as r } from "react/jsx-runtime";
import { SendOutlined as i } from "@ant-design/icons";
//#region src/ui/chat/ChatInput.tsx
var a = n.div``, o = n(i)`
color: ${(e) => e.theme.colorPrimary};
&:hover {
cursor: pointer;
}
`, s = (n) => {
let { className: i, onSend: s } = n, [c, l] = t(""), u = (e) => {
l(e);
}, d = () => s(c);
return /* @__PURE__ */ r(a, {
className: i,
children: /* @__PURE__ */ r(e, {
className: i,
onChange: u,
onPressEnter: d,
suffix: /* @__PURE__ */ r(o, { onClick: d })
})
});
};
//#endregion
export { s as default };