UNPKG

stackpress

Version:

Incept is a content management framework.

22 lines (21 loc) 577 B
import { jsx as _jsx } from "react/jsx-runtime"; export default 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?.left) { classNames.push('open-left'); } if (open?.right) { classNames.push('open-right'); } return (_jsx("main", { className: classNames.join(' '), children: children })); }