'use client' import { useEffect, useId, useState } from 'react' import { AlertCircle, Brain, BookOpen, Check, ChevronDown, FileText, Compass, Database, FlaskConical, ListChecks, Loader2, MessagesSquare, Mountain, Notebook, Orbit, PenLine, Ruler, Sprout, Telescope, Users, } from 'lucide-react' import type { SourceChildren, SourceCandidate, SourceLibrary } from '@/hooks/useTopicSourceLibrary' import type { Translate } from './format' import { useTranslation } from 'react-i18next' /** * The stored value is still the emoji each icon replaces β€” only how it's * *offered* changes. A raw system emoji renders at whatever the OS font * decides and reads as clip art (see ProgressRing's own note on why the * topic card dropped this); a line icon in the app's own visual language * reads as considered instead of decorative, and stays identical across * platforms and themes. */ const EMBLEMS: { value: string; Icon: typeof Compass }[] = [ { value: '🧭', Icon: Compass }, { value: 'πŸ”οΈ', Icon: Mountain }, { value: '🌿', Icon: Sprout }, { value: 'πŸ”­', Icon: Telescope }, { value: 'πŸ§ͺ', Icon: FlaskConical }, { value: '🧠', Icon: Brain }, { value: 'πŸ“', Icon: Ruler }, { value: '🌌', Icon: Orbit }, ] // library.failures records the dashboard request kind; two tabs are named // differently from the kind that feeds them. Everything else is identity. const FIELD_REQUEST_KIND: Record = { knowledgeBases: 'knowledge', questionSets: 'practice', } export function GoalStep({ goal, emoji, onGoal, onEmoji, }: { goal: string emoji: string onGoal: (value: string) => void onEmoji: (value: string) => void }) { const { t } = useTranslation() return (

{t('What do you want to master?')}

{t( 'Say what you want to be able to do. The tutor reads your materials and designs the outline with you in the first session β€” you can change it there.' )}