"use client" import { useState } from "react" import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card" import { Trophy, Medal, Star, Shield, Search } from "lucide-react" type LeaderboardTab = 'all-india' | 'state' | 'school' export default function LeaderboardPage() { const [activeTab, setActiveTab] = useState('all-india') const [isAnonymous, setIsAnonymous] = useState(false) // Mock data representing F-07 requirements (Accuracy x Consistency) const rankings = [ { rank: 1, name: "Rahul Verma", score: 9850, accuracy: "92%", streak: 45, isCurrentUser: false }, { rank: 2, name: "Priya Sharma", score: 9420, accuracy: "89%", streak: 42, isCurrentUser: false }, { rank: 3, name: "Amit Kumar", score: 9100, accuracy: "87%", streak: 38, isCurrentUser: false }, { rank: 4, name: "Sneha Patel", score: 8950, accuracy: "85%", streak: 30, isCurrentUser: false }, { rank: 5, name: "Vikram Singh", score: 8800, accuracy: "84%", streak: 28, isCurrentUser: false }, { rank: 6, name: "Demo Student", score: 8650, accuracy: "82%", streak: 25, isCurrentUser: true }, { rank: 7, name: "Ananya Desai", score: 8500, accuracy: "80%", streak: 20, isCurrentUser: false }, { rank: 8, name: "Karan Johar", score: 8450, accuracy: "79%", streak: 18, isCurrentUser: false }, { rank: 9, name: "Neha Gupta", score: 8300, accuracy: "78%", streak: 15, isCurrentUser: false }, { rank: 10, name: "Rohan Das", score: 8100, accuracy: "75%", streak: 12, isCurrentUser: false }, ] return (

Leaderboard

Rankings are based on your Accuracy × Consistency (Streak Bonus).

RANK STUDENT
SCORE STREAK
{rankings.map((student) => (
{student.rank === 1 ? : student.rank === 2 ? : student.rank === 3 ? : #{student.rank}}
{student.name.substring(0, 2).toUpperCase()}

{student.isCurrentUser ? (isAnonymous ? "Anonymous User" : student.name + " (You)") : student.name}

Accuracy: {student.accuracy}

{student.score.toLocaleString()}
{student.streak}
))}
Your Standing
#6

Top 15% of users

You are 150 points away from breaking into the Top 5. Complete today's DPS to earn your streak bonus!

Anonymous Mode
) }