MCPcopy Create free account
hub / github.com/Roy3838/Observer / getInactiveMessage

Function getInactiveMessage

app/src/components/ChangeDetectionSettings.tsx:174–188  ·  view source on GitHub ↗
(threshold: 'text' | 'dhash' | 'pixel' | 'suspicious')

Source from the content-addressed store, hash-verified

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) {

Callers 1

ChangeDetectionSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected