{
route(Pages.balance);
}}
/>
);
}
if (!state) {
return loading...
;
}
if (state.hasError) {
return There was an error getting the known exchanges
;
}
const exchangeList = state.response.exchanges.reduce(
(p, c) => ({
...p,
[c.exchangeBaseUrl]: c.currency,
}),
{} as Record,
);
return (
);
}