'use client'; 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 back, ${namespace || 'creator'}!` : 'Welcome to Ostris AI Toolkit'}

{isAuthenticated ? 'You are signed in with Hugging Face and can manage jobs, datasets, and submissions.' : 'Authenticate with Hugging Face or add a personal access token to create jobs, upload datasets, and launch training.'}

{isAuthenticated ? (
Create a Training Job Manage Datasets Settings
) : (
Or manage tokens in Settings
)}

Active Jobs

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