UNPKG

@wordpress/components

Version:
22 lines (19 loc) 494 B
/** * WordPress dependencies */ import { createContext } from '@wordpress/element'; /** * Internal dependencies */ import type { BaseSlotFillContext } from './types'; const initialValue: BaseSlotFillContext = { registerSlot: () => {}, unregisterSlot: () => {}, registerFill: () => {}, unregisterFill: () => {}, getSlot: () => undefined, getFills: () => [], subscribe: () => () => {}, }; export const SlotFillContext = createContext( initialValue ); export default SlotFillContext;