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

Function FileBreadcrumb

web/components/tools/ToolFileEdit.tsx:23–39  ·  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={i === parts.length - 1 ? "text-surface-200 font-medium" : ""}
32 >
33 {part}
34 </span>
35 </span>
36 ))}
37 </div>
38 );
39}
40
41export function ToolFileEdit({
42 input,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected