import * as React from 'react';
/**
 * A row of radio buttons.
 */
export class RadioButtons extends React.PureComponent {
    render() {
        return (React.createElement("div", { className: "radio-buttons" }, this.props.nodes.map(n => (React.createElement("label", { key: n.key ? n.key : n.id.toString(), className: "radio-buttons__item", title: n.tooltip },
            React.createElement("input", { className: `radio-buttons__input ${this.props.className || ''}`, name: "filter", type: "radio", onChange: this.props.onChange, value: n.id, checked: n.id === this.props.selected }),
            ' ',
            React.createElement("small", null,
                React.createElement("div", { className: "radio-buttons__label" }, n.label)))))));
    }
}
//# sourceMappingURL=RadioButtons.js.map