import network from "@ledgerhq/live-network";
import { getEnv } from "@ledgerhq/live-env";
const baseStatusUrl = () => getEnv("STATUS_API_URL");
const statusVersion = () => getEnv("STATUS_API_VERSION");
async function fetchStatusSummary() {
    const url = `${baseStatusUrl()}/v${statusVersion()}/summary.json`;
    const { data } = await network({
        method: "GET",
        url,
    });
    return data;
}
const api = {
    fetchStatusSummary,
};
export default api;
//# sourceMappingURL=api.js.map