@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
12 lines (11 loc) • 555 B
JavaScript
import * as React from 'react';
import { HistoryProvider } from '../core/history/HistoryContext';
import { useMobile } from '../../ui/Responsive';
import HistoryContainer from './HistoryContainer';
import HistoryAppDrawer from './HistoryAppDrawer';
const History = (props) => {
const isMobile = useMobile();
return (React.createElement(HistoryProvider, { ...props }, isMobile
? (React.createElement(HistoryAppDrawer, null)) : (React.createElement(HistoryContainer, { className: props.className }))));
};
export default History;