import React from 'react';
import { MultipleSuggestion } from './MultipleSuggestion';
import { classForComponent } from '../../utils/classFor';
export var SuggestionGroup = function (_a) {
    var suggestions = _a.suggestions, label = _a.label, type = _a.type, onClick = _a.onClick, selectedSuggestion = _a.selectedSuggestion;
    return (React.createElement("div", { className: classForComponent('suggestions-group') },
        React.createElement("p", { className: classForComponent('suggestions-group-label') }, label),
        React.createElement("ul", { className: classForComponent('suggestions-list') }, suggestions.map(function (element) { return (React.createElement("li", { key: element.name, className: classForComponent('suggestions-item') },
            React.createElement(MultipleSuggestion, { suggestion: element.name, selectedSuggestion: selectedSuggestion, operationType: type, onClick: onClick }))); }))));
};
//# sourceMappingURL=SuggestionGroup.js.map