import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import { AlgoOrderRootType, OrderStatus } from "@orderly.network/types";
import { useOrderStream } from "@orderly.network/hooks";
import { memo } from "react";
export const TPSLTabTitle = ()=>{
    const [_, { total }] = useOrderStream({
        status: OrderStatus.INCOMPLETE,
        includes: [
            AlgoOrderRootType.POSITIONAL_TP_SL,
            AlgoOrderRootType.TP_SL
        ]
    }, {
        keeplive: true
    });
    if (total === 0) {
        return /*#__PURE__*/ _jsx(_Fragment, {
            children: "TP/SL"
        });
    }
    return /*#__PURE__*/ _jsx(_Fragment, {
        children: `TP/SL(${total})`
    });
};
export const MemoizedTPSLTabTitle = /*#__PURE__*/ memo(TPSLTabTitle);

//# sourceMappingURL=tpslTabTitle.js.map