import network from "@ledgerhq/live-network";
import { getEnv } from "@ledgerhq/live-env";
import mockData from "./mock.json";
const api = {
    fetchRampCatalog: async () => {
        if (getEnv("MOCK")) {
            // TODO: replace this mock on playwright runs with controlled data
            return mockData;
        }
        const { data } = await network({
            method: "GET",
            headers: {
                Origin: "http://localhost:3000",
            },
            url: `${getEnv("BUY_API_BASE")}/provider/currencies?currency=crypto`,
        });
        return data;
    },
};
export default api;
//# sourceMappingURL=index.js.map