mirror of
https://github.com/YuuKi-OS/Yuuki-chat.git
synced 2026-02-18 22:01:09 +00:00
yuuki-deidad
This commit is contained in:
15
app/page.tsx
Normal file
15
app/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
"use client";
|
||||
|
||||
import { useAuth } from "@/lib/auth-context";
|
||||
import { TokenScreen } from "@/components/token-screen";
|
||||
import { ChatWindow } from "@/components/chat-window";
|
||||
|
||||
export default function Home() {
|
||||
const { isAuthenticated } = useAuth();
|
||||
|
||||
if (!isAuthenticated) {
|
||||
return <TokenScreen />;
|
||||
}
|
||||
|
||||
return <ChatWindow />;
|
||||
}
|
||||
Reference in New Issue
Block a user