text: export default class WeatherService {
    static async getWeather(city) {
      try {
        const response = await fetch(
          `http://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${process.env.API_KEY}`
        );
        if (!response.ok) {
          throw Error(response.status.Text);
        }
        return response.json();
      } catch (error) {
        return error.message;
      }
    }
  }
  