UNPKG

@wordpress/components

Version:
25 lines (23 loc) 760 B
// @ts-nocheck /** * External dependencies */ import { proxyMap } from 'valtio/utils'; /** * WordPress dependencies */ import { createContext } from '@wordpress/element'; import warning from '@wordpress/warning'; const SlotFillContext = createContext({ slots: proxyMap(), fills: proxyMap(), registerSlot: () => { typeof process !== "undefined" && process.env && process.env.NODE_ENV !== "production" ? warning('Components must be wrapped within `SlotFillProvider`. ' + 'See https://developer.wordpress.org/block-editor/components/slot-fill/') : void 0; }, updateSlot: () => {}, unregisterSlot: () => {}, registerFill: () => {}, unregisterFill: () => {} }); export default SlotFillContext; //# sourceMappingURL=slot-fill-context.js.map