import { createElement, Fragment } from '@wordpress/element' import Condition from './containers/Condition' import Tabs from './containers/Tabs' import Group from './containers/Group' const GenericContainerType = ({ value, renderingChunk, onChange, parentValue, purpose, hasRevertButton }) => { let Container = null if (renderingChunk[0].type === 'ct-condition') { Container = Condition } if (renderingChunk[0].type === 'tab') { Container = Tabs } if (renderingChunk[0].type === 'ct-group') { Container = Group } if (Container) { return ( ) } return
Unknown container type.
} export default GenericContainerType