"use client"; import { BookOpen, ChevronRight, Layers3, ShieldCheck } from "lucide-react"; import type { StructuredStudyResponse } from "@/lib/phase3-learning"; import type { StudyIntent } from "@/lib/study-intents"; type StructuredStudyResponseCardProps = { data: StructuredStudyResponse; onAction: (intent: StudyIntent, prompt: string) => void; }; export function StructuredStudyResponseCard({ data, onAction }: StructuredStudyResponseCardProps) { return (

Study Chat response

{data.topic}

{data.contextNote}

Separate practice
{data.sections.map((section) => (
{section.title === "Flashcards" || section.title === "Smart Notes" ? ( ) : ( )}

{section.title}

{section.summary}

    {section.points.slice(0, 4).map((point, index) => (
  • {point}
  • ))}
{section.action ? ( ) : null}
))}
{data.footerActions.map((action) => { const disabled = action.label === "Add to Tuition Plan"; return ( ); })}
); }