import Image from "next/image"; import { ctoF } from "../services/converters"; import styles from "./MainCard.module.css"; export const MainCard = ({ city, country, description, iconName, unitSystem, weatherData, }) => { return (

{city}, {country}

{description}

weatherIcon

{unitSystem == "metric" ? Math.round(weatherData.main.temp) : Math.round(ctoF(weatherData.main.temp))} °{unitSystem == "metric" ? "C" : "F"}

Feels like{" "} {unitSystem == "metric" ? Math.round(weatherData.main.feels_like) : Math.round(ctoF(weatherData.main.feels_like))} °{unitSystem == "metric" ? "C" : "F"}

); };