// @flow
import * as React from 'react';
import * as ICONS from 'constants/icons';
import Icon from 'component/common/icon';
import { Modal } from 'modal/modal';
import 'scss/component/notifications-blocked.scss';
type InlineMessageProps = {
title: string,
children: React.Node,
};
const InlineMessage = (props: InlineMessageProps) => {
const { title, children } = props;
return (
);
};
export const BrowserNotificationsBlocked = () => {
return (
{__('To enable push notifications please configure your browser to allow notifications on odysee.com.')}
);
};
export const BrowserNotificationHints = () => {
return (
- {__("Notifications aren't available when in incognito or private mode.")}
-
{__(
"On Firefox, notifications won't function if cookies are set to clear on browser close. Please disable or add an exception for Odysee, then refresh."
)}
- {__('For Brave, enable google push notifications in settings.')}
- {__('Check browser settings to see if notifications are disabled or otherwise restricted.')}
);
};
type ModalProps = {
doHideModal: () => void,
};
export const BrowserNotificationErrorModal = (props: ModalProps) => {
const { doHideModal } = props;
return (
);
};