You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
553 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { FormattedMessage } from 'react-intl';
  4. import Icon from 'mastodon/components/icon';
  5. export default class ClearColumnButton extends React.PureComponent {
  6. static propTypes = {
  7. onClick: PropTypes.func.isRequired,
  8. };
  9. render () {
  10. return (
  11. <button className='text-btn column-header__setting-btn' tabIndex='0' onClick={this.props.onClick}><Icon id='eraser' /> <FormattedMessage id='notifications.clear' defaultMessage='Clear notifications' /></button>
  12. );
  13. }
  14. }