UNPKG

urbi-exhibitions

Version:
29 lines (28 loc) 879 B
import { FC } from 'react'; type Props = { /** * If set, the userDecisionTimeout determines how much time (in milliseconds) * we give the user to make the decision whether to allow to share their location or not. * https://www.npmjs.com/package/react-geolocated */ userDecisionTimeout?: number; /** * Position options from Geolocation API * https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition#options */ positionOptions?: PositionOptions; /** * Max wait to prevent infinite debounce effect */ debounceMaxWait?: number; /** * Debounce delay */ debounceDelay?: number; }; /** * Component for tracking user location with Geolocation API * Created as component for having conditional rendering ability */ export declare const LocationTracker: FC<Props>; export {};