import { __extends } from "tslib";
import * as React from 'react';
import { VirtualizedList } from '@fluentui/react-experiments/lib/VirtualizedList';
import { ScrollContainer } from '@fluentui/react-experiments/lib/utilities/scrolling/ScrollContainer';
import * as VirtualizedListExampleStylesModule from './VirtualizedList.Example.scss';
var items = [];
var Item = function (props) {
    var item = props.item;
    return React.createElement("div", null, item.key);
};
var ExampleList = VirtualizedList;
var VirtualizedListBasicExample2 = /** @class */ (function (_super) {
    __extends(VirtualizedListBasicExample2, _super);
    function VirtualizedListBasicExample2(props) {
        var _this = _super.call(this, props) || this;
        _this._renderItem = function (item, itemIndex) {
            return (React.createElement("div", { key: item.key, style: { height: 30, border: '1px solid blue' } },
                React.createElement(Item, { item: item })));
        };
        // Populate with items for demos.
        if (items.length === 0) {
            for (var i = 0; i < 2000; i++) {
                items.push({
                    key: "Item " + i,
                });
            }
        }
        return _this;
    }
    VirtualizedListBasicExample2.prototype.render = function () {
        return (React.createElement("div", null,
            React.createElement(ScrollContainer, { scrollDebounceDelay: 200, className: VirtualizedListExampleStylesModule.fixedHeight },
                React.createElement(ExampleList, { items: items, itemHeight: 30, onRenderItem: this._renderItem }))));
    };
    return VirtualizedListBasicExample2;
}(React.Component));
export { VirtualizedListBasicExample2 };
//# sourceMappingURL=VirtualizedList.Basic2.Example.js.map