import { DeleteOutlined, EditOutlined, FormOutlined } from '@ant-design/icons'; import { Button, Card, Divider, Dropdown, Flex, MenuProps, Space, Tag, } from 'antd'; import ChatContainer from './chat-container'; import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg'; import ModalManager from '@/components/modal-manager'; import classNames from 'classnames'; import ChatConfigurationModal from './chat-configuration-modal'; import { useFetchDialogList } from './hooks'; import { useState } from 'react'; import styles from './index.less'; const Chat = () => { const dialogList = useFetchDialogList(); const [activated, setActivated] = useState(''); const handleAppCardEnter = (id: string) => () => { setActivated(id); }; const handleAppCardLeave = () => { setActivated(''); }; const items: MenuProps['items'] = [ { key: '1', label: ( 1st menu item ), }, ]; const appItems: MenuProps['items'] = [ { key: '1', label: ( Edit ), }, { type: 'divider' }, { key: '2', label: ( Delete chat ), }, ]; return ( {({ visible, showModal, hideModal }) => { return ( <> ); }} {dialogList.map((x) => ( {x.icon}
{x.name}
{x.description}
{activated === x.id && (
)}
))}
Chat 25
today
); }; export default Chat;