"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PHXChoiceList = PHXChoiceList;
const tslib_1 = require("tslib");
const Checkbox_1 = require("../Checkbox");
const react_1 = tslib_1.__importDefault(require("react"));
function PHXChoiceList({ label, list }) {
    return (react_1.default.createElement(react_1.default.Fragment, null,
        label && react_1.default.createElement("label", { className: 'block pb-1 text-xs font-medium leading-5 text-gray-700' }, label),
        list.map((item) => (react_1.default.createElement(Checkbox_1.PHXCheckbox, { id: item.id, key: item.title, expanded: item.expanded, helpText: item.helpText, register: item.register, title: item.title, defaultValue: item.defaultValue, defaultChecked: item.defaultChecked, disabled: item.disabled, onChange: item.onChange }, item.component)))));
}
//# sourceMappingURL=ChoiceList.js.map