@razorpay/blade
Version:
The Design System that powers Razorpay
17 lines (13 loc) • 575 B
JavaScript
import React__default from 'react';
var TopNavContext = /*#__PURE__*/React__default.createContext(null);
/**
* Returns the TopNav context if inside a TopNav, otherwise null.
* Stores the original app colorScheme so that overlay components
* (Menu, Popover, etc.) rendered inside TopNav can reset back to
* the app's colorScheme instead of inheriting TopNav's dark theme.
*/
var useTopNavContext = function useTopNavContext() {
return React__default.useContext(TopNavContext);
};
export { TopNavContext, useTopNavContext };
//# sourceMappingURL=TopNavContext.js.map