export const getLedgerAddressByIndex = ({ accounts, selectedIndex }) => {
    var _a;
    return ((_a = accounts === null || accounts === void 0 ? void 0 : accounts.find(({ index }) => index === selectedIndex)) === null || _a === void 0 ? void 0 : _a.address) || '';
};
//# sourceMappingURL=getLedgerAddressByIndex.js.map
