1 import { useEffect } from 'react';
3 import useApi from '@proton/components/hooks/useApi';
4 import { getSilentApi } from '@proton/shared/lib/api/helpers/customConfig';
5 import { loadAllowedTimeZones } from '@proton/shared/lib/date/timezone';
6 import noop from '@proton/utils/noop';
8 export const useLoadAllowedTimeZones = () => {
11 const silentApi = getSilentApi(api);
12 loadAllowedTimeZones(silentApi).catch(noop);