Browse Source

ChatContainer

visuddhinanda 11 tháng trước cách đây
mục cha
commit
1593478c2a
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  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;