import { useNavigate } from 'react-router-dom' import type { InstructorStudent } from '../../types' interface Props { student: InstructorStudent } export default function StudentRow({ student }: Props) { const navigate = useNavigate() const scoreColor = student.avg_score == null ? 'text-gray-500' : student.avg_score >= 70 ? 'text-green-400' : student.avg_score >= 40 ? 'text-yellow-400' : 'text-red-400' return (

{student.full_name}

{student.email}

{student.completed_sessions}

Interviews

{student.avg_score ?? '—'}

Avg score

) }