"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "DesktopAsks", {
    enumerable: true,
    get: function() {
        return DesktopAsks;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _listBoxdesktop = require("./listBox.desktop");
const _react = require("react");
const _types = require("../types");
const DesktopAsks = (props)=>{
    const { data } = props;
    const countQty = (0, _react.useMemo)(()=>{
        let max = Number.NaN;
        let len = data.length;
        let index = 0;
        while(Number.isNaN(max) && index < len){
            max = data[index][2];
            index++;
        }
        return max;
    }, [
        data
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_listBoxdesktop.DesktopListBox, {
        type: _types.OrderBookCellType.ASK,
        data: data,
        countQty: countQty
    });
};

//# sourceMappingURL=asks.desktop.js.map