@atlaskit/page-layout
Version:
A collection of components which let you compose an application's page layout.
13 lines (12 loc) • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getLeftPanelWidth = void 0;
var _constants = require("./constants");
var getLeftPanelWidth = exports.getLeftPanelWidth = function getLeftPanelWidth() {
if (typeof window === 'undefined') {
return 0;
}
return parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("--".concat(_constants.LEFT_PANEL_WIDTH)), 10) || 0;
};