"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "Asks", {
    enumerable: true,
    get: function() {
        return Asks;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _listBox = require("./listBox");
const _react = require("react");
const _types = require("./types");
const Asks = (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)(_listBox.ListBox, {
        type: _types.OrderBookCellType.ASK,
        data: data,
        countQty: countQty
    });
};

//# sourceMappingURL=asks.js.map