"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "HistoryListViewFull", {
    enumerable: true,
    get: function() {
        return HistoryListViewFull;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _divider = require("../../../divider");
const _react = require("react");
const _header = require("./header");
const _listview = require("./listview");
const _tab = require("../../../tab");
const _orderListContext = require("../../../block/orders/shared/orderListContext");
const HistoryListViewFull = (props)=>{
    const { height } = (0, _react.useContext)(_tab.TabContext);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
        id: "orderly-order-history-desktop",
        children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_orderListContext.OrderListProvider, {
            cancelOrder: props.onCancelOrder,
            cancelAlgoOrder: props.onCancelAlgoOrder,
            editOrder: (orderId, order)=>{
                throw new Error("Function not implemented.");
            },
            editAlgoOrder: (orderId, order)=>{
                throw new Error("Function not implemented.");
            },
            children: [
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_header.Header, {
                    status: props.status,
                    side: props.side,
                    onSideChange: props.onSideChange,
                    onStatusChange: props.onStatusChange
                }),
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_divider.Divider, {}),
                /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                    className: "orderly-relative",
                    style: {
                        height: `${(height?.content ?? 100) - 55}px`
                    },
                    children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_listview.Listview, {
                        dataSource: props.dataSource,
                        loading: props.isLoading,
                        loadMore: props.loadMore,
                        onSymbolChange: props.onSymbolChange
                    })
                })
            ]
        })
    });
};

//# sourceMappingURL=index.js.map