import { useMarketcapIds } from "@ledgerhq/live-countervalues-react";
import { sortCurrenciesByIds } from "./sortByMarketcap";
/**
 * Sorts the given currencies by marketcap.
 */
export const useCurrenciesByMarketcap = (currencies) => {
    const ids = useMarketcapIds();
    return ids ? sortCurrenciesByIds(currencies, ids) : currencies;
};
//# sourceMappingURL=hooks.js.map