import { cn } from '../../lib/classname'; import type { AiCourse } from '../../lib/ai'; import { RegenerateOutline } from './RegenerateOutline'; import type { AICourseViewMode } from './AICourseContent'; import { BookOpenCheck, Signpost } from 'lucide-react'; type AICourseOutlineHeaderProps = { course: AiCourse; isLoading: boolean; onRegenerateOutline: (prompt?: string) => void; viewMode: AICourseViewMode; setViewMode: (mode: AICourseViewMode) => void; }; export function AICourseOutlineHeader(props: AICourseOutlineHeaderProps) { const { course, isLoading, onRegenerateOutline, viewMode, setViewMode } = props; return (

{course.title || 'Loading course ..'}

{course.title ? course.difficulty : 'Please wait ..'}

{!isLoading && ( <>
)}
); }