import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { ConfirmFooter } from "./confrimFooter";
import { ConfirmHeader } from "./confirmHeader";
import { commify } from "@orderly.network/utils";
export const CloseBaseConfirm = (props)=>{
    const onCancel = ()=>{
        props.onClose();
    };
    return /*#__PURE__*/ _jsxs(_Fragment, {
        children: [
            /*#__PURE__*/ _jsx(ConfirmHeader, {
                onClose: onCancel,
                title: "Market Close"
            }),
            /*#__PURE__*/ _jsx("div", {
                className: "orderly-text-base-contrast orderly-text-sm orderly-mt-5",
                children: `You agree closing ${commify(props.quantity)} ${props.base} position at market price.`
            }),
            /*#__PURE__*/ _jsx(ConfirmFooter, {
                onCancel: onCancel,
                onConfirm: props.onConfirm,
                submitting: props.submitting
            })
        ]
    });
};

//# sourceMappingURL=marketConfirmDialog.js.map