import React, { useCallback } from "react";
import { AssetItem } from "../AssetItem/AssetItem";
import { VirtualList } from "../VirtualList/VirtualList";
export const AssetList = ({ assets, onClick, onVisibleItemsScrollEnd, }) => {
    const renderAssetItem = useCallback(({ name, ticker, id }) => (React.createElement(AssetItem, { name: name, ticker: ticker, id: id, onClick: onClick })), [onClick]);
    return (React.createElement(VirtualList, { itemHeight: 64, items: assets, onVisibleItemsScrollEnd: onVisibleItemsScrollEnd, renderItem: renderAssetItem }));
};
//# sourceMappingURL=AssetList.js.map