UNPKG

stackpress

Version:

Incept is a content management framework.

25 lines (24 loc) 776 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = LayoutMain; const jsx_runtime_1 = require("react/jsx-runtime"); function LayoutMain(props) { const { head, left, right, open, children } = props; const classNames = ['layout-main']; if (left) { classNames.push('left'); } if (right) { classNames.push('right'); } if (head) { classNames.push('head'); } if (open === null || open === void 0 ? void 0 : open.left) { classNames.push('open-left'); } if (open === null || open === void 0 ? void 0 : open.right) { classNames.push('open-right'); } return ((0, jsx_runtime_1.jsx)("main", { className: classNames.join(' '), children: children })); }