UNPKG

ffr-components

Version:

Fiori styled UI components

18 lines (16 loc) 561 B
import _extends from "@babel/runtime/helpers/esm/extends"; import React from 'react'; export default function ColGroup(_ref) { var _ref$lastColumns = _ref.lastColumns, lastColumns = _ref$lastColumns === void 0 ? [] : _ref$lastColumns; return React.createElement("colgroup", null, lastColumns.map(function (col, inx) { var width = col.width; var props = {}; if (width !== undefined) { props.width = width; } return React.createElement("col", _extends({}, props, { key: col.key || col.attribute || inx })); })); }