({ path, line, name, onNavigate }: {
path?: string; line?: number; name?: string; onNavigate: ArchitecturePanelProps['onNavigate'];
})
| 70 | } |
| 71 | |
| 72 | function SourceLink({ path, line, name, onNavigate }: { |
| 73 | path?: string; line?: number; name?: string; onNavigate: ArchitecturePanelProps['onNavigate']; |
| 74 | }): JSX.Element { |
| 75 | if (!path) return <span className="atlas-arch-muted" title={text.sourceMissing}>{text.unknown}</span>; |
| 76 | return <button className="atlas-arch-source" aria-label={text.openSource(name ?? path)} |
| 77 | onClick={() => onNavigate(path, line, name)}>{path}{line !== undefined ? `:${line}` : ''}</button>; |
| 78 | } |
| 79 | |
| 80 | function HotspotSignals({ hotspot }: { hotspot: ArchitectureHotspot }): JSX.Element { |
| 81 | const signals = [hotspot.allocationInLoop && text.allocationInLoop, |
nothing calls this directly
no outgoing calls
no test coverage detected