2017-04-21 21:05:35 +03:00
|
|
|
import PropTypes from 'prop-types';
|
2023-05-23 18:15:17 +03:00
|
|
|
import { PureComponent } from 'react';
|
|
|
|
|
2017-06-12 13:26:23 +03:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2023-05-23 18:15:17 +03:00
|
|
|
|
2023-05-09 04:11:56 +03:00
|
|
|
import { Icon } from 'mastodon/components/icon';
|
2017-04-08 14:07:55 +03:00
|
|
|
|
2023-05-23 11:52:27 +03:00
|
|
|
export default class ClearColumnButton extends PureComponent {
|
2017-04-08 14:07:55 +03:00
|
|
|
|
2017-05-12 15:44:10 +03:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 14:07:55 +03:00
|
|
|
render () {
|
|
|
|
return (
|
2023-04-04 17:33:44 +03:00
|
|
|
<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>
|
2017-04-08 14:07:55 +03:00
|
|
|
);
|
|
|
|
}
|
2017-05-20 18:31:47 +03:00
|
|
|
|
2017-04-21 21:05:35 +03:00
|
|
|
}
|