aethex-studio/src/components/aethex/education-panel.tsx
2026-01-27 06:16:41 +00:00

22 lines
677 B
TypeScript

import React from 'react';
interface EducationPanelProps {
lessons: Array<{ id: string; title: string; completed: boolean }>;
onLessonSelect: (id: string) => void;
}
export const EducationPanel: React.FC<EducationPanelProps> = ({ lessons, onLessonSelect }) => {
return (
<div className="education-panel">
<h2>Education</h2>
<ul>
{lessons.map((lesson) => (
<li key={lesson.id} onClick={() => onLessonSelect(lesson.id)} className={lesson.completed ? 'completed' : ''}>
<span>{lesson.title}</span>
{lesson.completed && <span className="check"></span>}
</li>
))}
</ul>
</div>
);
};