import { WeatherWidgetIcon } from './weather-widget-icon'; import { WeatherDayProps } from './weather.interface'; const WeatherTypes = { RAINY: 'дождь', CLOUDY: 'облачно', PARTLYCLOUDY: 'переменная облачность', SNOW: 'снег', SNOWY: 'идет снег', SUNNY: 'солнце', THUNDER: '', UNKNOWN: 'неизвестно', }; export function WeatherWidgetToday(props: WeatherDayProps) { const { temperature, condition } = props; const wType = WeatherTypes[condition as keyof typeof WeatherTypes] ?? WeatherTypes.UNKNOWN; return (