import React from "react"; import { useState } from "react"; import { fetchWeather } from "../utils/apiFunc"; import Cookies from "js-cookie"; const WeatherCard: React.FC = () => { const [city, setCity] = useState(""); const apiKey = Cookies.get("apiKey") || ""; const handleCityChange = (event: React.ChangeEvent) => { setCity(event.target.value); }; const handleSubmit = (event: React.FormEvent) => { event.preventDefault(); fetchWeather(city, apiKey); }; return (

Weather Card

Current Weather will be displayed here

); }; export default WeatherCard;