UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

10 lines (9 loc) 547 B
import { type UseGeolocationStateResult } from './useGeolocationState'; import { type UseGeolocationEventsResult } from './useGeolocationEvents'; /** * Returns an array where the first item is the geolocation state from the `useGeolocationState` hook and the * second one is the object of callback setters from the `useGeolocationEvents` hook. * It is intended as a shortcut to those hooks. */ declare const useGeolocation: (options?: PositionOptions) => [UseGeolocationStateResult, UseGeolocationEventsResult]; export default useGeolocation;