import React from 'react';
import { RadioButton } from './RadioButton';
export var GasPriceSpeedChoose = function (_a) {
    var gasModes = _a.gasModes, modeName = _a.modeName, onModeChanged = _a.onModeChanged;
    return (React.createElement("div", { className: "transaction-speed" },
        React.createElement("p", { className: "transaction-speed-title" }, "Transaction speed"),
        React.createElement("ul", { className: "transaction-speed-list" }, gasModes.map(function (_a) {
            var name = _a.name, usdAmount = _a.usdAmount;
            return (React.createElement("li", { key: name, className: "transaction-speed-item" },
                React.createElement(RadioButton, { id: name, name: "speed", checked: name === modeName, onClick: function () { return onModeChanged(name, usdAmount); } },
                    React.createElement("div", { className: "transaction-speed-block" },
                        React.createElement("p", { className: "transaction-speed-type" }, name)))));
        }))));
};
//# sourceMappingURL=GasPriceSpeed.js.map