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