import { useId, useState } from 'react'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../Select'; type CourseOptionsProps = { difficulty: string; setDifficulty: (difficulty: string) => void; }; export function CourseOptions(props: CourseOptionsProps) { const { difficulty, setDifficulty } = props; const difficultySelectId = useId(); const difficultyOptions = [ { label: 'Beginner', value: 'beginner', description: 'Covers fundamental concepts', }, { label: 'Intermediate', value: 'intermediate', description: 'Explore advanced topics', }, { label: 'Advanced', value: 'advanced', description: 'Deep dives into complex concepts', }, ]; const selectedDifficulty = difficultyOptions.find( (option) => option.value === difficulty, ); return (
); }