Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/static/js/options/options/ct-select.js

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + import {
2 + createPortal,
3 + useState,
4 + useEffect,
5 + useRef,
6 + createElement,
7 + Fragment,
8 + } from '@wordpress/element'
9 + import { maybeTransformUnorderedChoices } from '../helpers/parse-choices'
10 + import classnames from 'classnames'
11 + import { __ } from 'ct-i18n'
12 +
13 + import usePopoverMaker from '../helpers/usePopoverMaker'
14 +
15 + import BlocksySelect from './ct-select/BlocksySelect'
16 + import GutenbergSelect from './ct-select/GutenbergSelect'
17 +
18 + const Select = (props) => {
19 + const { purpose } = props
20 +
21 + if (purpose === 'gutenberg') {
22 + return <GutenbergSelect {...props} />
23 + }
24 +
25 + return <BlocksySelect {...props} />
26 + }
27 +
28 + Select.supportedPurposes = ['default', 'gutenberg']
29 +
30 + export default Select
31 +