Files
auto-trade/app/(main)/dashboard/page.tsx

38 lines
1.4 KiB
TypeScript
Raw Normal View History

/**
* @file app/(main)/dashboard/page.tsx
2026-02-06 17:50:35 +09:00
* @description (Server Component)
*/
2026-02-06 17:50:35 +09:00
import { redirect } from "next/navigation";
import { createClient } from "@/utils/supabase/server";
/**
2026-02-11 16:31:28 +09:00
* ( )
* @returns UI
* @see app/(main)/trade/page.tsx `/trade` .
* @see app/(main)/settings/page.tsx KIS `/settings` .
*/
export default async function DashboardPage() {
2026-02-06 17:50:35 +09:00
// 상태 정의: 서버에서 세션을 먼저 확인해 비로그인 접근을 차단합니다.
const supabase = await createClient();
2026-02-06 17:50:35 +09:00
const {
data: { user },
} = await supabase.auth.getUser();
2026-02-06 17:50:35 +09:00
if (!user) redirect("/login");
2026-02-11 16:31:28 +09:00
return (
<section className="mx-auto flex h-full w-full max-w-5xl flex-col justify-center p-6">
{/* ========== DASHBOARD PLACEHOLDER ========== */}
<div className="rounded-2xl border border-brand-200 bg-background p-8 shadow-sm dark:border-brand-800/45 dark:bg-brand-900/14">
<h1 className="text-2xl font-semibold tracking-tight text-foreground">
</h1>
<p className="mt-2 text-sm text-muted-foreground">
.
</p>
</div>
</section>
);
}