@carbon/react
Version:
React components for the Carbon Design System
32 lines (30 loc) • 981 B
JavaScript
/**
* Copyright IBM Corp. 2016, 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/UIShell/SideNavContext.tsx
/**
* Copyright IBM Corp. 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const SideNavContext = (0, react.createContext)({});
const SideNavContextProvider = ({ children, isRail, isSideNavExpanded }) => {
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SideNavContext.Provider, {
value: {
isRail,
isSideNavExpanded
},
children
});
};
//#endregion
exports.SideNavContext = SideNavContext;
exports.SideNavContextProvider = SideNavContextProvider;