import React, { useCallback } from "react";
import { AccountItem } from "../AccountItem/AccountItem";
import { VirtualList } from "../VirtualList/VirtualList";
export const AccountList = ({ accounts, onClick, }) => {
    const renderAccountItem = useCallback((account) => React.createElement(AccountItem, { onClick: () => onClick(account.id), account: account }), [onClick]);
    return React.createElement(VirtualList, { items: accounts, itemHeight: 68, renderItem: renderAccountItem });
};
//# sourceMappingURL=AccountList.js.map