import React from 'react'; import Icon from 'mastodon/components/icon'; import Button from 'mastodon/components/button'; import { requestBrowserPermission } from 'mastodon/actions/notifications'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default @connect(() => {}) class NotificationsPermissionBanner extends React.PureComponent { static propTypes = { dispatch: PropTypes.func.isRequired, }; handleClick = () => { this.props.dispatch(requestBrowserPermission()); } render () { return (

}} />

); } }