blob: b020e3c573fd846e50792cea6917196ac14c4872 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import {useMemo} from 'react'
import {useGeolocation} from '#/state/geolocation'
export function useIsAgeAssuranceEnabled() {
const {geolocation} = useGeolocation()
return useMemo(() => {
return !!geolocation?.isAgeRestrictedGeo
}, [geolocation])
}
|