Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/blocksy-companion-pro   php

Repository URL to install this package:

Version: 1.8.76 

/ 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