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

Function FileBreadcrumb

web/components/tools/ToolFileRead.tsx:23–41  ·  view source on GitHub ↗
({ filePath }: { filePath: string })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected