"use client"; import type { TeachLessonNotes } from "@/lib/tuition/teachLessonNotes"; import { PacedTeachMarkdown } from "./PacedTeachMarkdown"; import type { TeachingPace } from "@/lib/api/teaching-preferences"; export function TeachNotesStep({ notes, beatIndex, pace = "standard", }: { notes: TeachLessonNotes; beatIndex: number; pace?: TeachingPace; }) { const index = Math.min( Math.max(beatIndex, 0), Math.max(notes.sections.length - 1, 0), ); const section = notes.sections[index]; const showGoals = index === 0; return (

02 ยท Teach

{String(index + 1).padStart(2, "0")} of{" "} {String(notes.sections.length).padStart(2, "0")}

{notes.method}

{showGoals ? notes.title : section.title}

{showGoals ? (

Today you will

) : null} {section ? (
{showGoals ? (

{section.title}

) : null} {section.boardPoints?.length ? (

On the board

    {section.boardPoints.map((point) =>
  • {point}
  • )}
) : null}
) : null}
); }