|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
import { Layout, Spin, Button } from 'antd';
|
|
|
|
|
import { RightCircleOutlined, RightOutlined, ReloadOutlined, MenuFoldOutlined, MenuUnfoldOutlined, VerticalRightOutlined, VerticalLeftOutlined } from '@ant-design/icons';
|
|
|
|
|
import { RightCircleOutlined, RightOutlined, ReloadOutlined, MenuFoldOutlined, MenuUnfoldOutlined, LeftOutlined } from '@ant-design/icons';
|
|
|
|
|
// import { useParams, useNavigate } from 'react-router-dom';
|
|
|
|
|
import MessagesHeader from './Conversations/Online/MessagesHeader';
|
|
|
|
|
import MessagesWrapper from './Conversations/Online/MessagesWrapper';
|
|
|
|
@ -49,7 +49,7 @@ const ChatWindow = () => {
|
|
|
|
|
{/* <Button type='text' icon={collapsedLeft ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />} onClick={() => setCollapsedLeft(!collapsedLeft)} className=' rounded-none rounded-l' /> */}
|
|
|
|
|
<MessagesHeader />
|
|
|
|
|
{/* <Button type='text' icon={<ReloadOutlined />} onClick={() => setCollapsedRight(!collapsedRight)} className='' title='最新消息记录' /> */}
|
|
|
|
|
<Button type='text' icon={collapsedRight ? <VerticalRightOutlined /> : <VerticalLeftOutlined />} onClick={() => setCollapsedRight(!collapsedRight)} className=' rounded-none rounded-r' />
|
|
|
|
|
<Button type='text' icon={collapsedRight ? <RightOutlined /> : <LeftOutlined />} onClick={() => setCollapsedRight(!collapsedRight)} className=' rounded-none rounded-r' />
|
|
|
|
|
</Header>
|
|
|
|
|
<Content className="flex-grow bg-whatsapp-bg relative" >
|
|
|
|
|
<MessagesWrapper />
|
|
|
|
|