import { useState, type JSX } from "react"; import { ChevronDown, ChevronRight } from "lucide-react"; import type { WorkspaceAgentActivityTimelineItem } from "../../workspaceAgentTimelineTypes"; import { CollapsibleReveal } from "./CollapsibleReveal"; interface RawTimelineJsonDisclosureProps { items: readonly WorkspaceAgentActivityTimelineItem[] | null | undefined; label: string; } export function RawTimelineJsonDisclosure({ items, label }: RawTimelineJsonDisclosureProps): JSX.Element | null { "use memo"; const [expanded, setExpanded] = useState(false); const json = rawTimelineJson(items); if (!json) { return null; } return (
{json}