import React from 'react';
import { CheckboxGroup } from './CheckboxGroup';
export const CheckboxList = (props) => {
    const { itemGroups, values, onChange } = props;
    return (React.createElement("div", null, (itemGroups === null || itemGroups === void 0 ? void 0 : itemGroups.length) > 0 &&
        (itemGroups === null || itemGroups === void 0 ? void 0 : itemGroups.map((item) => (React.createElement(CheckboxGroup, { title: item === null || item === void 0 ? void 0 : item.title, options: item === null || item === void 0 ? void 0 : item.options, values: values, onChange: onChange }))))));
};
//# sourceMappingURL=CheckboxList.js.map