"use client"; import { ChevronRight } from "lucide-react"; import { FileIcon } from "./FileIcon"; import { DiffView } from "./DiffView"; import { getLanguageFromPath } from "./SyntaxHighlight"; import { ToolUseBlock } from "./ToolUseBlock"; interface ToolFileEditProps { input: { file_path: string; old_string: string; new_string: string; replace_all?: boolean; }; result?: string; isError?: boolean; isRunning?: boolean; startedAt?: number; completedAt?: number; } function FileBreadcrumb({ filePath }: { filePath: string }) { const parts = filePath.replace(/^\//, "").split("/"); return (