mirror of
https://github.com/YuuKi-OS/Yuuki-chat.git
synced 2026-02-18 22:01:09 +00:00
16 lines
335 B
TypeScript
16 lines
335 B
TypeScript
"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 />;
|
|
}
|