@gechiui/components
Version:
UI components for GeChiUI.
17 lines (14 loc) • 429 B
JavaScript
/**
* GeChiUI dependencies
*/
import { createContext } from '@gechiui/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;