GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/dnd.com/dnd/wp-content/themes/astra/inc/metabox/extend-metabox/src/ast-checkbox.js
const { ToggleControl } = wp.components;

const AstCheckboxControl = ( props ) => {
    return (
        <ToggleControl
            className = { props.name }
            label={ props.label }
            checked={  props.value  }
            onChange={ (val)=>{
                val = ( true === val ) ? 'disabled' : '';
            props.onChange(val)} }
        />
    );
}

export default AstCheckboxControl;