浏览代码

ChatContainer

visuddhinanda 11 月之前
父节点
当前提交
1593478c2a
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      dashboard-v4/dashboard/src/pages/library/chat/ai.tsx

+ 5 - 2
dashboard-v4/dashboard/src/pages/library/chat/ai.tsx

@@ -1,7 +1,10 @@
-import AiChat from "../../../components/chat/AiChat";
+import { useParams } from "react-router-dom";
+import { ChatContainer } from "../../../components/chat/ChatContainer";
 
 const AI = () => {
-  return <AiChat />;
+  const { id } = useParams();
+
+  return <ChatContainer chatId={id ?? ""} />;
 };
 
 export default AI;