UNPKG

@wordpress/components

Version:
15 lines (14 loc) 498 B
/** * WordPress dependencies */ import { createContext } from '@wordpress/element'; // Navigation context in BottomSheet is necessary for controlling the // height of navigation container. export const BottomSheetNavigationContext = createContext({ currentHeight: 1, setHeight: () => {} }); export const { Provider: BottomSheetNavigationProvider, Consumer: BottomSheetNavigationConsumer } = BottomSheetNavigationContext; //# sourceMappingURL=bottom-sheet-navigation-context.native.js.map