UNPKG

1.11 kBSource Map (JSON)View Raw
1{"version":3,"sources":["useGeolocation.js"],"names":["useGeolocation","options","geolocationStandardOptions","state","events"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAOA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,GAA0C;AAAA,MAAzCC,OAAyC,uEAA/BC,sCAA+B;AAC/D,MAAMC,KAAK,GAAG,qCAAoBF,OAApB,CAAd;AACA,MAAMG,MAAM,GAAG,sCAAqBH,OAArB,CAAf;AAEA,SAAO,CAACE,KAAD,EAAQC,MAAR,CAAP;AACD,CALD;;eAOeJ,c","sourcesContent":["import useGeolocationState from './useGeolocationState';\nimport useGeolocationEvents from './useGeolocationEvents';\nimport geolocationStandardOptions from './utils/geolocationStandardOptions';\n\n/**\n * Returns an array where the first item is the geolocation state from the `useGeolocationState` hook and the\n * second one is the object of callback setters from the `useGeolocationEvents` hook.\n * It is intended as a shortcut to those hooks.\n */\nconst useGeolocation = (options = geolocationStandardOptions) => {\n const state = useGeolocationState(options);\n const events = useGeolocationEvents(options);\n\n return [state, events];\n};\n\nexport default useGeolocation;\n"],"file":"useGeolocation.js"}
\No newline at end of file