// A turn's collapsed activity block: two or more tool rows after the same // `User` row, plus the narration absorbed between them. The header counts tool // rows only (docs/STRUCTURED-VIEW.md); opening it reveals tools and text in // chronological order. import type { ReactNode } from "react"; export interface ToolGroupProps { id: string; toolCount: number; expanded: boolean; onExpandedChange(expanded: boolean): void; children: ReactNode; } export function ToolGroup({ id, toolCount, expanded, onExpandedChange, children }: ToolGroupProps) { return (