| 1 |
import { createContext } from 'react'; |
| 2 |
import { getBreakpoint, getVerticalBreakpoint } from '../../helpers/util'; |
| 3 |
export const pageContextDefaults = { |
| 4 |
isManagedSidebar: false, |
| 5 |
isSidebarOpen: false, |
| 6 |
onSidebarToggle: () => null, |
| 7 |
isMobile: false, |
| 8 |
width: null, |
| 9 |
height: null, |
| 10 |
getBreakpoint, |
| 11 |
getVerticalBreakpoint |
| 12 |
}; |
| 13 |
export const PageContext = createContext(pageContextDefaults); |
| 14 |
export const PageContextProvider = PageContext.Provider; |
| 15 |
export const PageContextConsumer = PageContext.Consumer; |
| 16 |
//# sourceMappingURL=PageContext.js.map |