balibabu
feat: add description text to operators and extract the useFetchModelId to logicHooks.ts and drag the operator to the canvas and initialize the form data #918 (#1379)
b2b0160
| import { useFetchFlow } from '@/hooks/flow-hooks'; | |
| import { IModalProps } from '@/interfaces/common'; | |
| import { Drawer } from 'antd'; | |
| 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={window.innerWidth > 1278 ? '40%' : 470} | |
| mask={false} | |
| // zIndex={10000} | |
| > | |
| <FlowChatBox></FlowChatBox> | |
| </Drawer> | |
| ); | |
| }; | |
| export default ChatDrawer; | |