"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const React = __importStar(require("react"));
const ChooserItem_1 = require("../ChooserItem");
class Chooser extends React.PureComponent {
    render() {
        const { className, items, onSelect } = this.props;
        return (React.createElement("div", { className: className }, items.map((item, index) => React.createElement(ChooserItem_1.ChooserItem, { key: index, item: item, onSelect: onSelect }))));
    }
}
exports.Chooser = Chooser;
//# sourceMappingURL=index.js.map