"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "HistoryListView", {
    enumerable: true,
    get: function() {
        return HistoryListView;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _divider = require("../../divider");
const _listView = require("../../listView");
const _historyToolbar = require("./historyToolbar");
const _cell = require("./cell");
const _defaultStaticStyle = require("../../statistic/defaultStaticStyle");
const _provider = require("../../provider");
const HistoryListView = (props)=>{
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
        id: "orderly-order-history-mobile",
        children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_defaultStaticStyle.StatisticStyleProvider, {
            labelClassName: "orderly-text-3xs orderly-text-base-contrast/30",
            children: [
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_historyToolbar.HistoryToolbar, {
                    status: props.status,
                    side: props.side,
                    onSideChange: props.onSideChange,
                    onStatusChange: props.onStatusChange
                }),
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_divider.Divider, {}),
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_listView.ListView.separated, {
                    isLoading: props.isLoading,
                    dataSource: props.dataSource,
                    renderSeparator: (_, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_divider.Divider, {}),
                    renderItem: (item, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_provider.SymbolProvider, {
                            symbol: item.symbol,
                            children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_cell.Cell, {
                                item: item,
                                onSymbolChange: props.onSymbolChange
                            })
                        }),
                    loadMore: props.loadMore
                })
            ]
        })
    });
};

//# sourceMappingURL=historyListView.js.map