2024-07-04 19:18:02 +08:00
|
|
|
import { useFetchFlow } from '@/hooks/flow-hooks';
|
2024-06-07 19:27:27 +08:00
|
|
|
import { IModalProps } from '@/interfaces/common';
|
|
|
|
|
import { Drawer } from 'antd';
|
|
|
|
|
import FlowChatBox from './box';
|
|
|
|
|
|
|
|
|
|
const ChatDrawer = ({ visible, hideModal }: IModalProps<any>) => {
|
2024-07-04 19:18:02 +08:00
|
|
|
const { data } = useFetchFlow();
|
|
|
|
|
|
2024-06-07 19:27:27 +08:00
|
|
|
return (
|
|
|
|
|
<Drawer
|
2024-07-04 19:18:02 +08:00
|
|
|
title={data.title}
|
2024-06-07 19:27:27 +08:00
|
|
|
placement="right"
|
|
|
|
|
onClose={hideModal}
|
|
|
|
|
open={visible}
|
|
|
|
|
getContainer={false}
|
2024-07-04 19:18:02 +08:00
|
|
|
width={window.innerWidth > 1278 ? '40%' : 470}
|
2024-06-11 15:46:12 +08:00
|
|
|
mask={false}
|
2024-06-11 11:58:49 +08:00
|
|
|
// zIndex={10000}
|
2024-06-07 19:27:27 +08:00
|
|
|
>
|
|
|
|
|
<FlowChatBox></FlowChatBox>
|
|
|
|
|
</Drawer>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default ChatDrawer;
|