({ filePath }: { filePath: string })
| 18 | } |
| 19 | |
| 20 | function 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 | |
| 38 | function isNewFile(result?: string): boolean { |
| 39 | if (!result) return false; |
nothing calls this directly
no outgoing calls
no test coverage detected