export default interface ExerciseItem { 
    id: string;
    sectionId: number;  
    label: React.ReactNode;
    content: React.ReactNode; 
    exerciseId?: string;
}

export function isExerciseItem(item: unknown): item is ExerciseItem {
    return item !== undefined && 
           item !== null &&
           typeof (item as ExerciseItem).id === 'string' &&
           typeof (item as ExerciseItem).sectionId === 'number' &&
           (item as ExerciseItem).label !== undefined &&
           (item as ExerciseItem).content !== undefined;
}
