"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "CloseBaseConfirm", {
    enumerable: true,
    get: function() {
        return CloseBaseConfirm;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _confrimFooter = require("./confrimFooter");
const _confirmHeader = require("./confirmHeader");
const _utils = require("@orderly.network/utils");
const CloseBaseConfirm = (props)=>{
    const onCancel = ()=>{
        props.onClose();
    };
    return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
        children: [
            /*#__PURE__*/ (0, _jsxruntime.jsx)(_confirmHeader.ConfirmHeader, {
                onClose: onCancel,
                title: "Market Close"
            }),
            /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                className: "orderly-text-base-contrast orderly-text-sm orderly-mt-5",
                children: `You agree closing ${(0, _utils.commify)(props.quantity)} ${props.base} position at market price.`
            }),
            /*#__PURE__*/ (0, _jsxruntime.jsx)(_confrimFooter.ConfirmFooter, {
                onCancel: onCancel,
                onConfirm: props.onConfirm,
                submitting: props.submitting
            })
        ]
    });
};

//# sourceMappingURL=marketConfirmDialog.js.map