visuddhinanda 6 месяцев назад
Родитель
Сommit
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;