glitchier-soc/app/javascript/mastodon/features/notifications/components/grant_permission_button.jsx

20 lines
525 B
React
Raw Normal View History

2023-05-23 11:52:27 +03:00
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
2023-05-23 11:52:27 +03:00
export default class GrantPermissionButton extends PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-header__permission-btn' tabIndex={0} onClick={this.props.onClick}>
<FormattedMessage id='notifications.grant_permission' defaultMessage='Grant permission.' />
</button>
);
}
}