芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/blocksy-companion/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, className, // start | end position = 'end', }) => { const items = [ ...(position === 'start' ? [children] : []),
, ...(position === 'end' ? [children] : []), ] return (
onChange()} className={cn('ct-checkbox-container', className, { activated, })}> {items}
) } export default Checkbox