"use client"; import { useSession } from "@/lib/auth-client"; import { UserProfile } from "@/components/auth/user-profile"; import { Button } from "@/components/ui/button"; import { Lock } from "lucide-react"; import { useDiagnostics } from "@/hooks/use-diagnostics"; import Link from "next/link"; export default function DashboardPage() { const { data: session, isPending } = useSession(); const { isAiReady, loading: diagnosticsLoading } = useDiagnostics(); if (isPending) { return (
Loading...
); } if (!session) { return (

Protected Page

You need to sign in to access the dashboard

); } return (

Dashboard

AI Chat

Start a conversation with AI using the Vercel AI SDK

{(diagnosticsLoading || !isAiReady) ? ( ) : ( )}

Profile

Manage your account settings and preferences

Name: {session.user.name}

Email: {session.user.email}

); }