UNPKG

@gechiui/block-editor

Version:
28 lines (23 loc) 738 B
import { createElement } from "@gechiui/element"; /** * GeChiUI dependencies */ import warning from '@gechiui/warning'; /** * Internal dependencies */ import groups from './groups'; export default function InspectorControlsSlot(_ref) { var _groups$group; let { __experimentalGroup: group = 'default', ...props } = _ref; const Slot = (_groups$group = groups[group]) === null || _groups$group === void 0 ? void 0 : _groups$group.Slot; if (!Slot) { typeof process !== "undefined" && process.env && process.env.NODE_ENV !== "production" ? warning(`Unknown InspectorControl group "${group}" provided.`) : void 0; return null; } return createElement(Slot, props); } //# sourceMappingURL=slot.native.js.map