import React, { useContext } from "react"; const NestedNavigationContext = React.createContext(false); export function useNestedNavigationContext() { return useContext(NestedNavigationContext); } export function withNestedNavigationContextProvider(Component) { return function WrappedWithNestedNavigationContextProvider(props) { return ( ); }; }