"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var TokensStyledComponents_1 = require("./TokensStyledComponents");
var TokensTextComponents_1 = require("./TokensTextComponents");
var Tokens_1 = require("./Tokens");
var Tabs_1 = require("../Tabs");
var TokensTabBuy_1 = require("./buy/TokensTabBuy");
var TokensTabSell_1 = require("./sell/TokensTabSell");
exports.UserTokenAccountBuy = function (props) {
    var foundationAddress = props.foundationAddress, network = props.network, step = props.step;
    if (step === Tokens_1.TOKEN_PROGRESS.DISABLED) {
        return (React.createElement(TokensStyledComponents_1.FlexColumnsPrimaryModule, { padding: true },
            React.createElement(TokensStyledComponents_1.TokenBuySection, null,
                React.createElement(TokensTextComponents_1.TokenBuyTextDisabled, null),
                React.createElement(TokensStyledComponents_1.TokenBtns, { disabled: true },
                    React.createElement(TokensTextComponents_1.TokenBuyBtnDisabledText, null)))));
    }
    return (React.createElement(TokensStyledComponents_1.FlexColumnsPrimaryModule, { padding: true },
        React.createElement(Tabs_1.Tabs, { TabComponent: TokensStyledComponents_1.TokenBuySellTab, TabsNavComponent: TokensStyledComponents_1.TokenBuySellTabsNav },
            React.createElement(Tabs_1.Tab, { title: "Buy" },
                React.createElement(TokensStyledComponents_1.TokenBuySection, null,
                    React.createElement(TokensTabBuy_1.TokensTabBuy, { foundationAddress: foundationAddress, network: network }))),
            React.createElement(Tabs_1.Tab, { title: "Sell" },
                React.createElement(TokensStyledComponents_1.TokenBuySection, null,
                    React.createElement(TokensTabSell_1.TokensTabSell, { network: network }))))));
};
//# sourceMappingURL=TokensAccountBuy.js.map