"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArticleWrapper = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const useCurrentLayout_1 = require("../common/useCurrentLayout");
const LayoutContext_1 = require("../provider/LayoutContext");
const ArticleWrapper = ({ children }) => {
    const { layoutId, layoutDeviation } = (0, useCurrentLayout_1.useCurrentLayout)();
    const layoutDeviationStyle = { '--layout-deviation': layoutDeviation };
    return ((0, jsx_runtime_1.jsx)(LayoutContext_1.LayoutContext.Provider, { value: layoutId, children: (0, jsx_runtime_1.jsx)("div", { className: "article-wrapper", style: Object.assign({}, layoutDeviationStyle), children: children }) }));
};
exports.ArticleWrapper = ArticleWrapper;
