import { SkillCategory, CategoryEvaluation, SkillLevel } from "@/lib/types"; import { SkillEvaluationCard } from "./skill-evaluation-card"; interface SkillEvaluationGridProps { currentCategory: SkillCategory; currentEvaluation: CategoryEvaluation; onUpdateSkill: (category: string, skillId: string, level: SkillLevel) => void; onUpdateMentorStatus: ( category: string, skillId: string, canMentor: boolean ) => void; onUpdateLearningStatus: ( category: string, skillId: string, wantsToLearn: boolean ) => void; onRemoveSkill: (category: string, skillId: string) => void; } export function SkillEvaluationGrid({ currentCategory, currentEvaluation, onUpdateSkill, onUpdateMentorStatus, onUpdateLearningStatus, onRemoveSkill, }: SkillEvaluationGridProps) { const getSkillEvaluation = (skillId: string) => { const skillEval = currentEvaluation?.skills.find( (s) => s.skillId === skillId ); return ( skillEval || { skillId, level: null, canMentor: false, wantsToLearn: false, } ); }; if (!currentEvaluation.selectedSkillIds.length) { return null; } return (