### What problem does this PR solve? ``` fixed type-script on MessageInput change to TextArea ``` _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
25 lines
599 B
TypeScript
25 lines
599 B
TypeScript
import { useFetchFlow } from '@/hooks/flow-hooks';
|
|
import { IModalProps } from '@/interfaces/common';
|
|
import { Drawer } from 'antd';
|
|
import { getDrawerWidth } from '../utils';
|
|
import FlowChatBox from './box';
|
|
|
|
const ChatDrawer = ({ visible, hideModal }: IModalProps<any>) => {
|
|
const { data } = useFetchFlow();
|
|
|
|
return (
|
|
<Drawer
|
|
title={data.title}
|
|
placement="right"
|
|
onClose={hideModal}
|
|
open={visible}
|
|
getContainer={false}
|
|
width={getDrawerWidth()}
|
|
mask={false}
|
|
>
|
|
<FlowChatBox></FlowChatBox>
|
|
</Drawer>
|
|
);
|
|
};
|
|
|
|
export default ChatDrawer;
|