Sha256: 4692227da9bf0b9ddfa86350887658a80caa1bc6fd52cfc36b140b658eed8765
Contents?: true
Size: 878 Bytes
Versions: 82
Compression:
Stored size: 878 Bytes
Contents
import React from 'react'; import { useSelector } from 'react-redux'; import { SettingsWarning } from './SettingsWarning'; import { selectAutoUploadEnabled, selectHostObfuscationEnabled, } from '../../../InventorySettings/InventorySettingsSelectors'; import { CONNECTOR_STATUS } from '../CloudConnectorButton/CloudConnectorConstants'; import { selectStatus } from '../CloudConnectorButton/CloudConnectorSelectors'; const ConnectedSettingsWarning = () => { const autoUpload = useSelector(selectAutoUploadEnabled); const hostObfuscation = useSelector(selectHostObfuscationEnabled); const isCloudConnector = useSelector(selectStatus) === CONNECTOR_STATUS.RESOLVED; return ( <SettingsWarning autoUpload={autoUpload} hostObfuscation={hostObfuscation} isCloudConnector={isCloudConnector} /> ); }; export default ConnectedSettingsWarning;
Version data entries
82 entries across 82 versions & 1 rubygems