import React, { Children } from 'react';
import { Divider } from '@material-ui/core';
export const CompactDataList = (props) => {
    const { children, disableSeparator = true } = props;
    const arrayChildren = Children.toArray(children);
    return (React.createElement("div", null, Children.map(arrayChildren, (child, index) => {
        const isLast = index === arrayChildren.length - 1;
        return (React.createElement(React.Fragment, null, child, !isLast && !disableSeparator && React.createElement(Divider, null)));
    })));
};
//# sourceMappingURL=CompactDataList.js.map