import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { AccountInfo } from "../../../../block/accountStatus/desktop";
import { memo } from "react";
import { useTradingPageContext } from "../../context/tradingPageContext";
import { TradingFeatures } from "../../features";
import SwitchMarginModulePlace from "../../../../page/trading/desktop/elements/switchMarginModulePlace";
export const AccountInfoElement = /*#__PURE__*/ memo(()=>{
    const { disableFeatures } = useTradingPageContext();
    if (disableFeatures?.includes(TradingFeatures.AssetAndMarginInfo)) return null;
    return /*#__PURE__*/ _jsx(_Fragment, {
        children: /*#__PURE__*/ _jsxs("div", {
            className: "orderly-px-4 orderly-relative",
            children: [
                /*#__PURE__*/ _jsx(SwitchMarginModulePlace, {}),
                /*#__PURE__*/ _jsx(AccountInfo, {})
            ]
        })
    });
});

//# sourceMappingURL=accountInfo.js.map