npm i react-uso-nave-permissions
import useNavigatorPermissions from 'react-use-navigator-permissions'
const Component = () => {
const { status, error } = useNavigatorPermissions('geolocation')
return (
<div>{status}</div>
)
}
Defeated Dogfish