UNPKG

@wordpress/components

Version:
23 lines (20 loc) 516 B
/** * WordPress dependencies */ import { createContext } from '@wordpress/element'; import warning from '@wordpress/warning'; const SlotFillContext = createContext( { slots: {}, fills: {}, registerSlot: () => { warning( 'Components must be wrapped within `SlotFillProvider`. ' + 'See https://developer.wordpress.org/block-editor/components/slot-fill/' ); }, updateSlot: () => {}, unregisterSlot: () => {}, registerFill: () => {}, unregisterFill: () => {}, } ); export default SlotFillContext;