UNPKG

@wulperstudio/cms

Version:
28 lines 1.08 kB
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["columnGap", "componentProps", "first", "header", "rowGap"]; import React from 'react'; import { Root, First, Header } from './styled'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; var HeaderOneColumn = function HeaderOneColumn(_ref) { var columnGap = _ref.columnGap, componentProps = _ref.componentProps, first = _ref.first, header = _ref.header, rowGap = _ref.rowGap, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/_jsxs(Root, Object.assign({ columnGap: columnGap, rowGap: rowGap }, props, { children: [header && /*#__PURE__*/_jsx(Header, Object.assign({ component: "header" }, componentProps == null ? void 0 : componentProps.headerProps, { children: header })), /*#__PURE__*/_jsx(First, Object.assign({ component: "main" }, componentProps == null ? void 0 : componentProps.bodyProps, { children: first }))] })); }; export default HeaderOneColumn;