import React, { useCallback } from "react";
import { NetworkItem } from "../NetworkItem/NetworkItem";
import { VirtualList } from "../VirtualList/VirtualList";
export const NetworkList = ({ networks, onClick, }) => {
    const renderNetworkItem = useCallback((network) => React.createElement(NetworkItem, { ...network, onClick: () => onClick(network.id) }), [onClick]);
    return React.createElement(VirtualList, { items: networks, itemHeight: 64, renderItem: renderNetworkItem });
};
//# sourceMappingURL=NetworkList.js.map