local-weather/context/LocationContext.tsx

9 lines
330 B
TypeScript
Raw Normal View History

import { createContext } from 'react';
import { LocationContextType, coordType } from '@/types/types';
import { defaultGeoLocation } from '../app/defaultState';
export const LocationContext = createContext<LocationContextType>({
geoLocation: defaultGeoLocation,
setGeoLocation: () => {} // Default function, does nothing
});