"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "AccountInfoElement", {
    enumerable: true,
    get: function() {
        return AccountInfoElement;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _desktop = require("../../../../block/accountStatus/desktop");
const _react = require("react");
const _tradingPageContext = require("../../context/tradingPageContext");
const _features = require("../../features");
const _switchMarginModulePlace = /*#__PURE__*/ _interop_require_default(require("../../../../page/trading/desktop/elements/switchMarginModulePlace"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const AccountInfoElement = /*#__PURE__*/ (0, _react.memo)(()=>{
    const { disableFeatures } = (0, _tradingPageContext.useTradingPageContext)();
    if (disableFeatures?.includes(_features.TradingFeatures.AssetAndMarginInfo)) return null;
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
        children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
            className: "orderly-px-4 orderly-relative",
            children: [
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_switchMarginModulePlace.default, {}),
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_desktop.AccountInfo, {})
            ]
        })
    });
});

//# sourceMappingURL=accountInfo.js.map