@atlaskit/page-layout
Version:
A collection of components which let you compose an application's page layout.
13 lines • 597 B
JavaScript
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["setLeftSidebarState"];
import { useContext } from 'react';
import { SidebarResizeContext } from './sidebar-resize-context';
/**
* @deprecated `@atlaskit/page-layout` is deprecated. Use `@atlaskit/navigation-system` instead.
*/
export var usePageLayoutResize = function usePageLayoutResize() {
var _useContext = useContext(SidebarResizeContext),
setLeftSidebarState = _useContext.setLeftSidebarState,
context = _objectWithoutProperties(_useContext, _excluded);
return context;
};