UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

25 lines 682 B
import { Divider } from 'antd'; import { Timer } from 'lucide-react'; import { memo } from 'react'; import Icon from "../../Icon"; import Tag from "../../Tag"; import { jsx as _jsx } from "react/jsx-runtime"; var HistoryDivider = /*#__PURE__*/memo(function (_ref) { var enable = _ref.enable, text = _ref.text; if (!enable) return null; return /*#__PURE__*/_jsx("div", { style: { padding: '0 20px' }, children: /*#__PURE__*/_jsx(Divider, { children: /*#__PURE__*/_jsx(Tag, { icon: /*#__PURE__*/_jsx(Icon, { icon: Timer }), children: text || 'History Message' }) }) }); }); export default HistoryDivider;