"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const utils_1 = require("../../../../utils/index.js");
const Navigation_1 = tslib_1.__importDefault(require("../../components/Navigation/Navigation.js"));
const b = (0, utils_1.block)('layout');
const Layout = ({ children, navigation }) => ((0, jsx_runtime_1.jsxs)("div", { className: b(), children: [navigation &&
            ((0, utils_1.isLogoSet)(navigation.logo) || (0, utils_1.isHeaderSet)(navigation.header)) &&
            (navigation.renderNavigation ? (navigation.renderNavigation()) : ((0, jsx_runtime_1.jsx)(Navigation_1.default, { data: navigation.header, logo: navigation.logo, className: b('navigation') }))), (0, jsx_runtime_1.jsx)("main", { className: b('content'), children: children })] }));
exports.default = Layout;
//# sourceMappingURL=Layout.js.map
