UNPKG

urbi-exhibitions

Version:
14 lines (13 loc) 493 B
import { ReactNode, FC } from 'react'; interface GeolocationContextState { coordinates?: GeolocationCoordinates; } export interface GeolocationContext extends GeolocationContextState { setCoordinates: React.Dispatch<React.SetStateAction<GeolocationCoordinates | undefined>>; } export declare function useGeolocation(): GeolocationContext; type GeolocationProviderProps = { children?: ReactNode; }; export declare const GeolocationProvider: FC<GeolocationProviderProps>; export {};