import { Icon } from '@iconify/react/dist/iconify.js'; import { Box, Card, Center, Group, Image, Stack, Text } from '@mantine/core'; import { useCommonHooks } from 'hooks'; export enum WindDirection { N = 0, NE = 45, E = 90, SE = 135, S = 180, SW = 225, W = 270, NW = 315, } export default function HourlyCard({ weather }: any) { const { isMobile } = useCommonHooks(); return ( {new Date(weather.startTime).toLocaleTimeString('en-US', { hour: 'numeric', minute: 'numeric', })}
{weather.windSpeed}
{weather.temperature}°{weather.temperatureUnit}/{weather.relativeHumidity.value}% {`${weather.probabilityOfPrecipitation.value}`}%
); }