"use client"; import { ChevronRight, Flame, Plus, Sparkles } from "lucide-react"; import LiquidGlass from "liquid-glass-react"; import { cn } from "@/lib/utils"; import { studyFeatures } from "./workspaceData"; import type { StudyFeature, StudyProgress } from "./workspaceTypes"; const DAY_LABELS = ["M", "T", "W", "T", "F", "S", "S"]; type AIStudyAssistantPanelProps = { className?: string; activeFeatureId: string | null; subject: string; progress: StudyProgress; onFeatureSelect: (feature: StudyFeature) => void; onAddTask: () => void; }; export function AIStudyAssistantPanel({ className, activeFeatureId, progress, onFeatureSelect, onAddTask, }: AIStudyAssistantPanelProps) { return ( {/* Header */}

Study guidance

{/* Feature list */}
{studyFeatures.map((feature) => { const Icon = feature.icon; const isActive = activeFeatureId === feature.id; return ( ); })}
{/* Progress Overview */}

Progress Overview

{/* Streak */}
{progress.streakDays} days streak
{/* Week dots */}
{DAY_LABELS.map((label, idx) => { const status = progress.weekDays[idx]; return (
{label}
); })}
{/* Today's goal */}
Today's Goal {progress.todayCompleted}/{progress.todayTotal} tasks
{/* Add task */}
); }