"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var MultipleSuggestion_1 = require("./MultipleSuggestion");
var classFor_1 = require("../../utils/classFor");
exports.SuggestionGroup = function (_a) {
    var suggestions = _a.suggestions, label = _a.label, type = _a.type, onClick = _a.onClick, selectedSuggestion = _a.selectedSuggestion;
    return (react_1.default.createElement("div", { className: classFor_1.classForComponent('suggestions-group') },
        react_1.default.createElement("p", { className: classFor_1.classForComponent('suggestions-group-label') }, label),
        react_1.default.createElement("ul", { className: classFor_1.classForComponent('suggestions-list') }, suggestions.map(function (element) { return (react_1.default.createElement("li", { key: element.name, className: classFor_1.classForComponent('suggestions-item') },
            react_1.default.createElement(MultipleSuggestion_1.MultipleSuggestion, { suggestion: element.name, selectedSuggestion: selectedSuggestion, operationType: type, onClick: onClick }))); }))));
};
//# sourceMappingURL=SuggestionGroup.js.map