"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "ListBox", {
    enumerable: true,
    get: function() {
        return ListBox;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _cell = require("./cell");
const _orderContext = require("./orderContext");
const ListBox = (props)=>{
    const { data } = props;
    const { mode } = (0, _react.useContext)(_orderContext.OrderBookContext);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
        id: "orderly-order-book-list",
        className: "orderly-flex orderly-flex-col orderly-gap-[1px]",
        children: data.map((item, index)=>{
            return /*#__PURE__*/ (0, _jsxruntime.jsx)(_cell.OrderBookCell, {
                background: "",
                price: item[0],
                quantity: item[1],
                accumulated: item[2],
                count: props.countQty,
                type: props.type,
                mode: mode
            }, index);
        })
    });
};

//# sourceMappingURL=listBox.js.map