import { useMemo } from "react";
import { findCryptoCurrencyById, findTokenById } from "@ledgerhq/cryptoassets";
export const useSelectableCurrencies = ({ allCurrencies, }) => {
    const currencies = useMemo(() => {
        const tokens = allCurrencies.map(findTokenById).filter(Boolean);
        const cryptoCurrencies = allCurrencies.map(findCryptoCurrencyById).filter(Boolean);
        return [...tokens, ...cryptoCurrencies];
    }, [allCurrencies]);
    return currencies;
};
//# sourceMappingURL=useSelectableCurrencies.js.map