"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const react_1 = require("react");
const PageContext_1 = require("../../PageContext");
const classNames_1 = require("../../utils/classNames");
const constants_1 = require("../constants");
const useLogic = ({ header }) => {
    const { hasAside } = (0, react_1.useContext)(PageContext_1.PageContext);
    const contentClassnames = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(constants_1.pageContentClassnames.content, {
        [constants_1.pageContentClassnames.contentHasHeader]: Boolean(header),
    }), [header]);
    return { contentClassnames, hasAside };
};
exports.useLogic = useLogic;
