import { useSetModalState } from '@/hooks/common-hooks'; import { Layout } from 'antd'; import { useState } from 'react'; import { ReactFlowProvider } from 'reactflow'; import FlowCanvas from './canvas'; import Sider from './flow-sider'; import FlowHeader from './header'; import { useFetchDataOnMount } from './hooks'; const { Content } = Layout; function RagFlow() { const [collapsed, setCollapsed] = useState(false); const { visible: chatDrawerVisible, hideModal: hideChatDrawer, showModal: showChatDrawer, } = useSetModalState(); useFetchDataOnMount(); return ( ); } export default RagFlow;