| 26 | } |
| 27 | const evidenceLabel = (kind: string) => kind === 'startup' ? 'Startup dependency' : kind === 'configuration' ? 'Configured destination' : 'Call found in source'; |
| 28 | const relativeSource = (absolute: string, selection: ContainerSelection) => { |
| 29 | const prefix = selection.inventory.rootPath.replaceAll('\\', '/').replace(/\/$/, '') + '/'; |
| 30 | return absolute.startsWith(prefix) ? absolute.slice(prefix.length) : undefined; |
| 31 | }; |
| 32 | |
| 33 | export default function ContainerMap({ project, generation, active, filter, onNavigate, onClearSelection, onSelectionEvidence, onShowEndpoints, navigation }: Props) { |
| 34 | const [available, setAvailable] = useState<ProjectEntry[]>([]); |