@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
16 lines (15 loc) • 589 B
JavaScript
"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from "react";
const NavLocationContext = /*#__PURE__*/ createContext({});
NavLocationContext.displayName = "NavLocationContext";
const useNavLocation = ()=>useContext(NavLocationContext);
const NavLocationProvider = ({ where, sideExpandedOrMobile, children })=>/*#__PURE__*/ _jsx(NavLocationContext.Provider, {
value: {
where,
sideExpandedOrMobile
},
children: children
});
export { useNavLocation };
export default NavLocationProvider;