import React from 'react';
import {
RainIconAnimated,
SnowIconAnimated,
SunCloudIconAnimated,
SunIconAnimated,
ThunderIconAnimated,
WindCloudIconAnimated
} from './AnimatedIcons/index';
const AnimatedWeatherIcon = (props: Props) => {
const icons = {
'weather-rainy': ,
'weather-sunny': ,
'weather-lightning': ,
'weather-cloudy': ,
'weather-snowy': ,
'weather-hail': ,
'weather-fog': ,
'weather-windy':
}
return icons[props.weatherName]
}
AnimatedWeatherIcon.defaultProps = {
weatherName: 'weather-sunny',
size: 50,
speed: 1,
color: 'black'
}
interface Props {
weatherName: string,
color?: string,
size?: number,
speed?: number
}
export default AnimatedWeatherIcon