import { useState, useEffect } from 'react' import LeaderboardPage from './components/LeaderboardPage' import Examples from './components/Examples' const TABS = [ { label: 'Audio', type: 'audio-leaderboard' }, { label: 'Image', type: 'image-leaderboard' }, { label: 'Video', type: 'video-leaderboard' }, { label: 'Image Examples', type: 'image-examples' }, { label: 'Audio Examples', type: 'audio-examples' }, { label: 'Video Examples', type: 'video-examples' }, ] function App() { const [activeTab, setActiveTab] = useState('audio-leaderboard') const [theme, setTheme] = useState<'dark' | 'light'>('dark') useEffect(() => { document.documentElement.setAttribute('data-theme', theme) }, [theme]) let content = null if (activeTab === 'audio-leaderboard') { content = } else if (activeTab === 'image-leaderboard') { content = } else if (activeTab === 'video-leaderboard') { content = } else if (activeTab === 'image-examples') { content = } else if (activeTab === 'audio-examples') { content = } else if (activeTab === 'video-examples') { content = } return (

🥇 Omni Seal Bench Watermarking Leaderboard

{theme === 'dark' ? '🌙 Dark Mode' : '☀️ Light Mode'} setTheme(theme === 'dark' ? 'light' : 'dark')} aria-label="Toggle dark mode" />
{TABS.map((tab) => ( setActiveTab(tab.type)} /> ))}
{content}
) } export default App