'use client' import type { StudentWork } from '../../types' import { STATUS_COLORS, STATUS_LABELS, getGradeLabel } from '../../types' import { GlassCard } from './GlassCard' interface StudentCardProps { student: StudentWork index: number onClick: () => void delay?: number isDark?: boolean } export function StudentCard({ student, index, onClick, delay = 0, isDark = true }: StudentCardProps) { const statusColor = STATUS_COLORS[student.status] || '#6b7280' const statusLabel = STATUS_LABELS[student.status] || student.status const hasGrade = student.status === 'COMPLETED' || student.status === 'FIRST_EXAMINER' || student.status === 'SECOND_EXAMINER' return (
{/* Index/Number */}
{index + 1}
{/* Info */}

{student.anonym_id}

{statusLabel} {hasGrade && student.grade_points > 0 && ( {student.grade_points} P ({getGradeLabel(student.grade_points)}) )}
{/* Arrow */}
) }