Const
Security level enumeration constants.
Maps friendly constant names to SecurityLevel type values. Use these constants when working with security levels to avoid string literals and improve type safety.
// Compare security levelif (currentLevel === SECURITY_LEVELS.HIGH) { console.log('High security configured');}// Set default levelconst [level, setLevel] = useState(SECURITY_LEVELS.MODERATE); Copy
// Compare security levelif (currentLevel === SECURITY_LEVELS.HIGH) { console.log('High security configured');}// Set default levelconst [level, setLevel] = useState(SECURITY_LEVELS.MODERATE);
Security level enumeration constants.
Maps friendly constant names to SecurityLevel type values. Use these constants when working with security levels to avoid string literals and improve type safety.