2017-04-22 04:05:35 +10:00
|
|
|
import PropTypes from 'prop-types';
|
2023-05-24 01:15:17 +10:00
|
|
|
import { PureComponent } from 'react';
|
|
|
|
|
2017-06-12 20:26:23 +10:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2023-05-24 01:15:17 +10:00
|
|
|
|
2024-01-16 21:27:26 +11:00
|
|
|
import DeleteForeverIcon from '@/material-icons/400-24px/delete_forever.svg?react';
|
2023-05-09 11:11:56 +10:00
|
|
|
import { Icon } from 'mastodon/components/icon';
|
2017-04-08 21:07:55 +10:00
|
|
|
|
2023-05-23 18:52:27 +10:00
|
|
|
export default class ClearColumnButton extends PureComponent {
|
2017-04-08 21:07:55 +10:00
|
|
|
|
2017-05-12 22:44:10 +10:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 21:07:55 +10:00
|
|
|
render () {
|
|
|
|
return (
|
2023-10-25 04:45:08 +11:00
|
|
|
<button className='text-btn column-header__setting-btn' tabIndex={0} onClick={this.props.onClick}><Icon id='eraser' icon={DeleteForeverIcon} /> <FormattedMessage id='notifications.clear' defaultMessage='Clear notifications' /></button>
|
2017-04-08 21:07:55 +10:00
|
|
|
);
|
|
|
|
}
|
2017-05-21 01:31:47 +10:00
|
|
|
|
2017-04-22 04:05:35 +10:00
|
|
|
}
|