local-weather/context/LocationContext.tsx
ChrQR b8d543e1c1
Some checks failed
Docker Build & Publish / Build Docker (push) Failing after 1m10s
moved context to separate file and imported
2024-05-11 01:21:34 +02:00

9 lines
330 B
TypeScript

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
});