import { ChevronRight } from 'lucide-react'; import { useState } from 'react'; import { useTranslation } from '../../i18n'; import AssistantLiveStep from './AssistantLiveStep'; import { toolStepKey } from './assistantModel'; import type { ToolStep } from './assistantParts'; /** * What the assistant looked up on the way to its answer. While a step runs it * says what it does ("Reading your plan", "Searching near Trastevere") and * shimmers; once the run is done the steps fold into one quiet line that * opens to the list. Tool names never show: they are the model's words, not * the user's. */ export default function AssistantToolSteps({ steps }: { steps: ToolStep[] }) { const { t } = useTranslation(); const [open, setOpen] = useState(false); const running = steps.filter((s) => s.running).pop(); if (running) return ; return (
{open && ( )}
); }