// @flow
import React from 'react';
import * as ICONS from 'constants/icons';
import SettingsRow from 'component/settingsRow';
import { FormField } from 'component/common/form';
import useBrowserNotifications from '$web/component/browserNotificationSettings/use-browser-notifications';
import 'scss/component/notifications-blocked.scss';
import Icon from 'component/common/icon';
const BrowserNotificationsBlocked = () => {
return (
{__('Heads up: browser notifications are currently blocked in this browser.')}
{__('To enable push notifications please configure your browser to allow notifications on odysee.com.')}
);
};
const BrowserNotificationSettings = () => {
const { pushSupported, pushEnabled, pushPermission, pushToggle } = useBrowserNotifications();
if (!pushSupported) return null;
if (pushPermission === 'denied') return ;
return (
);
};
export default BrowserNotificationSettings;