Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
really-simple-ssl
/
settings
/
src
/
Dashboard
/
SslLabs
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import { __ } from '@wordpress/i18n'; import useSslLabs from "./SslLabsData"; const SslLabsFooter = () => { const {sslScanStatus, setSslScanStatus, isLocalHost} = useSslLabs(); let disabled = sslScanStatus === 'active' || isLocalHost(); return ( <> <button disabled={disabled} onClick={ (e) => setSslScanStatus('active') } className="button button-default"> { sslScanStatus==='paused' && __("Continue SSL Health check", "really-simple-ssl")} { sslScanStatus!=='paused' && __("Check SSL Health", "really-simple-ssl")} </button> </> ) } export default SslLabsFooter;