import * as React from 'react' ; import { IColGroupProps } from '../../props' ; import EmptyCells from '../EmptyCells/EmptyCells' ; export const ColGroup = ( { columns , groupColumnsCount } ) => { return ( < colgroup > < EmptyCells count = { groupColumnsCount } isColGroup = { true } / > { columns . map ( c => < col key = { c . key } { ... c . colGroup } width = { c . width || c . colGroup ?. width || c . colGroup ?. style ?. width } / > ) } < /colgroup>); } ;