'use client'; import GpuMonitor from '@/components/GPUMonitor'; import JobsTable from '@/components/JobsTable'; import { TopBar, MainContent } from '@/components/layout'; import Link from 'next/link'; import { useAuth } from '@/contexts/AuthContext'; import HFLoginButton from '@/components/HFLoginButton'; export default function Dashboard() { const { status: authStatus, namespace } = useAuth(); const isAuthenticated = authStatus === 'authenticated'; return ( <>

Dashboard

{isAuthenticated ? ( Welcome, {namespace || 'user'} ) : ( <> Welcome, Guest Settings )}

Active Jobs

View All
{isAuthenticated ? ( ) : (
Sign in with Hugging Face or add an access token in Settings to view and manage jobs.
)}
); }