import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Divider } from "../../../divider";
import { useContext } from "react";
import { Header } from "./header";
import { Listview } from "./listview";
import { TabContext } from "../../../tab";
import { OrderListProvider } from "../../../block/orders/shared/orderListContext";
export const HistoryListViewFull = (props)=>{
    const { height } = useContext(TabContext);
    return /*#__PURE__*/ _jsx("div", {
        id: "orderly-order-history-desktop",
        children: /*#__PURE__*/ _jsxs(OrderListProvider, {
            cancelOrder: props.onCancelOrder,
            editOrder: (orderId, order)=>{
                throw new Error("Function not implemented.");
            },
            cancelAlgoOrder: (orderId, symbol)=>{
                throw new Error("Function not implemented.");
            },
            editAlgoOrder: (orderId, order)=>{
                throw new Error("Function not implemented.");
            },
            children: [
                /*#__PURE__*/ _jsx(Header, {
                    status: props.status,
                    side: props.side,
                    onSideChange: props.onSideChange,
                    onStatusChange: props.onStatusChange
                }),
                /*#__PURE__*/ _jsx(Divider, {}),
                /*#__PURE__*/ _jsx("div", {
                    className: "orderly-relative",
                    style: {
                        height: `${(height?.content ?? 100) - 55}px`
                    },
                    children: /*#__PURE__*/ _jsx(Listview, {
                        dataSource: props.dataSource,
                        loading: props.isLoading,
                        loadMore: props.loadMore,
                        onSymbolChange: props.onSymbolChange
                    })
                })
            ]
        })
    });
};

//# sourceMappingURL=index.js.map