@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines (19 loc) • 682 B
JavaScript
import Icon from "../../../Icon/Icon.mjs";
import Tag$1 from "../../../Tag/Tag.mjs";
import { jsx } from "react/jsx-runtime";
import { Divider } from "antd";
import { Timer } from "lucide-react";
//#region src/chat/ChatList/components/HistoryDivider.tsx
const HistoryDivider = ({ enable, text }) => {
if (!enable) return null;
return /* @__PURE__ */ jsx("div", {
style: { padding: "0 20px" },
children: /* @__PURE__ */ jsx(Divider, { children: /* @__PURE__ */ jsx(Tag$1, {
icon: /* @__PURE__ */ jsx(Icon, { icon: Timer }),
children: text || "History Message"
}) })
});
};
//#endregion
export { HistoryDivider as default };
//# sourceMappingURL=HistoryDivider.mjs.map