MCPcopy Create free account
hub / github.com/codeaashu/claude-code / FileBreadcrumb

Function FileBreadcrumb

web/components/tools/ToolFileWrite.tsx:20–36  ·  view source on GitHub ↗
({ filePath }: { filePath: string })

Source from the content-addressed store, hash-verified

18}
19
20function FileBreadcrumb({ filePath }: { filePath: string }) {
21 const parts = filePath.replace(/^\//, "").split("/");
22 return (
23 <div className="flex items-center gap-1 font-mono text-xs text-surface-400 flex-wrap">
24 {parts.map((part, i) => (
25 <span key={i} className="flex items-center gap-1">
26 {i > 0 && <ChevronRight className="w-3 h-3 text-surface-600" />}
27 <span
28 className={i === parts.length - 1 ? "text-surface-200 font-medium" : ""}
29 >
30 {part}
31 </span>
32 </span>
33 ))}
34 </div>
35 );
36}
37
38function isNewFile(result?: string): boolean {
39 if (!result) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected