({ filePath }: { filePath: string })
| 21 | } |
| 22 | |
| 23 | function 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 | |
| 43 | const MAX_LINES_COLLAPSED = 40; |
| 44 |
nothing calls this directly
no outgoing calls
no test coverage detected