text: export const searchPokemon = async(pokemon) =>{
      try{
          let url = `https://pokeapi.co/api/v2/pokemon/${pokemon}`
          const response = await fetch(url)
          return await response.json()
      } catch (error){
          console.log("error: ", error)
      }
  }
  export const getPokemons = async(limite = 50, offset = 0) =>{
      try{
          let url = `https://pokeapi.co/api/v2/pokemon?limit=${limite}&offset=${offset}`
          const response = await fetch(url)
          return await response.json()
      } catch (error){
          console.log("error: ", error)
      }
  }
  
  export const getPokemonData = async(url) =>{
      try{
          const response = await fetch(url)
          return await response.json()
      } catch (error){
          console.log("error: ", error)
      }
  }