"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "LimitConfirm", {
    enumerable: true,
    get: function() {
        return LimitConfirm;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _divider = require("../../../divider");
const _icon = require("../../../icon");
const _text = require("../../../text");
const _orderDetail = require("../shared/orderDetail");
const _utils = require("@orderly.network/utils");
const LimitConfirm = (props)=>{
    const { order, quote, side } = props;
    ;
    return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
        children: [
            /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                className: "orderly-space-y-3",
                children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                    className: "orderly-font-medium orderly-text-base-contrast-54 orderly-text-2xs desktop:orderly-text-sm",
                    children: `You will close ${(0, _utils.commify)(order.order_quantity || "")} ${props.base} position at limit price.`
                })
            }),
            /*#__PURE__*/ (0, _jsxruntime.jsx)(_divider.Divider, {
                className: "orderly-my-4"
            }),
            /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
                className: "orderly-mb-4 orderly-flex orderly-text-base orderly-items-center orderly-gap-2",
                children: [
                    /*#__PURE__*/ (0, _jsxruntime.jsx)(_icon.NetworkImage, {
                        size: 20,
                        type: "token",
                        name: props.base
                    }),
                    /*#__PURE__*/ (0, _jsxruntime.jsx)(_text.Text, {
                        rule: "symbol",
                        className: "orderly-text-base desktop:orderly-text-lg",
                        children: order.symbol
                    })
                ]
            }),
            /*#__PURE__*/ (0, _jsxruntime.jsx)(_orderDetail.OrderDetail, {
                className: "orderly-text-xs",
                order: props.order,
                quote: props.quote
            })
        ]
    });
};

//# sourceMappingURL=limitConfirm.js.map