(threshold: 'text' | 'dhash' | 'pixel' | 'suspicious')
| 172 | |
| 173 | // Helper to get inactive message |
| 174 | const getInactiveMessage = (threshold: 'text' | 'dhash' | 'pixel' | 'suspicious'): string => { |
| 175 | const modeName = detectionMode === DetectionMode.DHashOnly ? 'Camera' : |
| 176 | detectionMode === DetectionMode.PixelDifferenceOnly ? 'Screen UI' : 'Hybrid'; |
| 177 | |
| 178 | switch (threshold) { |
| 179 | case 'dhash': |
| 180 | return `Not used in ${modeName} mode`; |
| 181 | case 'pixel': |
| 182 | return `Not used in ${modeName} mode`; |
| 183 | case 'suspicious': |
| 184 | return 'Only used in Hybrid mode'; |
| 185 | default: |
| 186 | return ''; |
| 187 | } |
| 188 | }; |
| 189 | |
| 190 | // If focused mode, render simplified view |
| 191 | if (activeFocusedThreshold) { |
no outgoing calls
no test coverage detected