UNPKG

@plteam/chat-ui

Version:

CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript

11 lines (10 loc) 628 B
import * as React from 'react'; import Skeleton from '@mui/material/Skeleton'; import { historyClassNames } from '../core/history/historyClassNames'; const TimeGroupItem = ({ group, loading, slots, slotProps }) => { if (loading || !slots) return React.createElement(Skeleton, { variant: "text", width: 100 }); return (React.createElement(slots.listTimeTextWrapper, { ...slotProps?.listTimeTextWrapper, className: historyClassNames.listTimeTextWrapper }, React.createElement(slots.listTimeText, { variant: "body2", ...slotProps?.listTimeText }, group?.label))); }; export default TimeGroupItem;