HEX
Server: Apache
System: Linux b5.s-host.com.ua 4.18.0-305.10.2.el7.x86_64 #1 SMP Fri Jul 23 21:00:55 UTC 2021 x86_64
User: unelbhzm (1470)
PHP: 8.0.18
Disabled: NONE
Upload Files
File: //sites/nuofama.com/wp-content/plugins/blocksy-companion-pro/static/js/helpers/Checkbox.js
import {
	createElement,
	Component,
	useEffect,
	useState,
	Fragment
} from '@wordpress/element'
import { __ } from 'ct-i18n'
import cn from 'classnames'

const Checkbox = ({ children, activated, checked, onChange }) => {
	return (
		<div
			onClick={() => onChange()}
			className={cn('ct-checkbox-container', {
				activated
			})}>
			{children}
			<span className={cn('ct-checkbox', { active: checked })}>
				<svg width="10" height="8" viewBox="0 0 11.2 9.1">
					<polyline class="check" points="1.2,4.8 4.4,7.9 9.9,1.2 " />
				</svg>
			</span>
		</div>
	)
}

export default Checkbox