"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "MarkPriceConfirm", {
    enumerable: true,
    get: function() {
        return MarkPriceConfirm;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _hooks = require("@orderly.network/hooks");
const _utils = require("@orderly.network/utils");
const MarkPriceConfirm = (props)=>{
    const { position } = props;
    const symbolInfo = (0, _hooks.useSymbolsInfo)()[position?.symbol];
    const base = (0, _react.useMemo)(()=>symbolInfo("base"), [
        symbolInfo
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
        children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
            id: "orderly-market-close-dialog-content",
            className: "orderly-text-2xs orderly-text-base-contrast-54 desktop:orderly-text-sm",
            children: [
                "You will close",
                " ",
                /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
                    className: "orderly-text-warning",
                    children: `${(0, _utils.commify)(position.position_qty)} ${base}`
                }),
                " ",
                "position at market price."
            ]
        })
    });
};

//# sourceMappingURL=markPriceConfirm.js.map