import type { PropsWithChildren, ReactNode } from 'react' import { cn, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui' type ToolProps = PropsWithChildren<{ className?: string label: ReactNode icon?: ReactNode /** Shimmers the label to mark the tool call that is currently in progress. */ isActive?: boolean }> export function Tool({ className, label, icon, isActive = false, children }: ToolProps) { const isCollapsible = !!children return (