?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/cryptoimpot.fr/wp-content/themes/blocksy/static/js/options/options/



?? Go up: /home/webdevt/www/cryptoimpot.fr/wp-content/themes/blocksy/static/js/options

?? Viewing: ct-switch.js

import { createElement, Component } from '@wordpress/element'
import classnames from 'classnames'

import BlocksySwitch from './ct-switch/BlocksySwitch'
import GutenbergSwitch from './ct-switch/GutenbergSwitch'

const Switch = (props) => {
	const { purpose } = props

	if (purpose === 'gutenberg') {
		return <GutenbergSwitch {...props} />
	}

	return <BlocksySwitch {...props} />
}

Switch.renderingConfig = {
	design: 'inline',
}

Switch.supportedPurposes = ['default', 'gutenberg']

export default Switch


??

??