'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 } = useAuth(); const isAuthenticated = authStatus === 'authenticated'; return ( <> Training Jobs {isAuthenticated ? ( New Training Job ) : ( Sign in to create jobs )} {isAuthenticated ? ( ) : ( Sign in with Hugging Face or add a personal access token to view and manage training jobs. Manage tokens in Settings )} > ); }
Sign in with Hugging Face or add a personal access token to view and manage training jobs.