text: import React from 'react'
  import WeatherIcons from 'react-weathericons'
  import { CLOUD, CLOUDY, SUN, RAIN, SNOW, WINDY} from './../constants/weather'
  
  const stateToIconName = weatherState => {
      switch (weatherState) {
          case CLOUD:
          return "cloud"
          case CLOUDY:
          return "cloudy"
          case SUN:
          return "day-sunny"
          case RAIN:
          return "rain" 
          case SNOW:
          return "snow" 
          case WINDY:
          return "windy"
  
          default:
          return "day-sunny"
      }  
  }
  
  const getWeatherIcon = weatherState => (
      <WeatherIcons name={stateToIconName(weatherState)} size="2x"/>
     )
  
  const WeatherTemperature = ({temperature, weatherState}) => (
  		<div>
              {getWeatherIcon(weatherState)}
              <span>{`${temperature} ºC`}</span>
          </div>
      )
  
  export default WeatherTemperature