import { secrets } from "https://esm.town/v/me/secrets";
export const fetchGiphy = (async (searchTerm) => {
const { GiphyFetch } = await import("npm:@giphy/js-fetch-api");
const gf = new GiphyFetch(secrets.giphyApiKey);
const { data: gifs } = await gf.search(searchTerm, { limit: 10 });
return gifs;
});