STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/static/js/options/options/ct-radio.js

SHA-256: 634ba5be62d5e471f76c888c22e7df3623500d1e1baecccc03f1f75c12d16795
import { createElement } from '@wordpress/element'

import BlocksyRadio from './ct-radio/BlocksyRadio'
import GutenbergRadio from './ct-radio/GutenbergRadio'

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

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

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

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

export default Radio