// Dev-tools gate. Explicit opt-in via REACT_APP_DEV_TOOLS=1. // Safe default: any value other than exactly '1' = off. // Dynamic key access so react-scripts DefinePlugin does NOT inline the value // at build time — allows tests + runtime env changes to take effect. const KEY = 'REACT_APP_' + 'DEV_TOOLS'; export const isDevToolsEnabled = () => process.env[KEY] === '1';