import { __extends } from "tslib";
import { PureComponent } from 'react';
var BaseTabsNav = (function (_super) {
    __extends(BaseTabsNav, _super);
    function BaseTabsNav() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.onTabSelected = function (id) {
            var onChange = _this.props.onChange;
            onChange(id);
        };
        return _this;
    }
    BaseTabsNav.prototype.renderTabs = function () {
        var tabDataList = this.props.tabDataList;
        var renderDataList = this.transformTabDataList(tabDataList);
        return renderDataList.map(this.renderTab, this);
    };
    return BaseTabsNav;
}(PureComponent));
export default BaseTabsNav;
