feat(ui): add /chat route wired to ChatPage

This commit is contained in:
Ishaan Jaffer 2026-03-05 16:56:55 -08:00
parent a906baa60c
commit 8101227084

View file

@ -0,0 +1,19 @@
"use client";
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
import ChatPage from "@/components/chat/ChatPage";
const ChatPageRoute = () => {
const { accessToken, userRole, userId, userEmail } = useAuthorized();
return (
<ChatPage
accessToken={accessToken ?? ""}
userRole={userRole ?? ""}
userId={userId ?? ""}
userEmail={userEmail ?? ""}
/>
);
};
export default ChatPageRoute;