'use client' import LocationSearch from '@/components/LocationSearch'; import WeatherNow from '../components/WeatherNow' import { createContext, useState } from 'react'; import { defaultGeoLocation } from './defaultState'; import { LocationContextType, coordType } from '@/types/types'; import { LocationContext } from '@/context/LocationContext'; export default function Home() { const [geoLocation, setGeoLocation] = useState(defaultGeoLocation); // Create an object that will be passed to the context provider const contextValue: LocationContextType = { geoLocation, setGeoLocation }; return (
); }