@wordpress/components
Version:
UI components for WordPress.
18 lines (17 loc) • 515 B
JavaScript
/**
* 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: {
value: 0
},
setHeight: () => {}
});
export const {
Provider: BottomSheetNavigationProvider,
Consumer: BottomSheetNavigationConsumer
} = BottomSheetNavigationContext;
//# sourceMappingURL=bottom-sheet-navigation-context.native.js.map