import * as React from 'react'; import * as _ from 'lodash'; import * as DefaultStyles from './style'; import GroupedGridHeader from './Header' import GroupedGridRow from './Row' export interface Props { header: any, styles?: Styles, id?: string, name?: string, children } export interface Styles { Group?: any, HeaderRoot?: any, GroupRows?: any, RowRoot?: any } const GroupedGridElement: React.StatelessComponent = (props: Props): JSX.Element => { const Styles: Styles = _.merge(DefaultStyles, props.styles); return ( {props.children.map((row, index) => {row} )} ); } export default GroupedGridElement;