2017-04-21 13:05:35 -05:00
|
|
|
import PropTypes from 'prop-types';
|
2023-05-23 10:15:17 -05:00
|
|
|
import { PureComponent } from 'react';
|
|
|
|
|
2017-06-12 05:26:23 -05:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2023-05-23 10:15:17 -05:00
|
|
|
|
2024-01-12 04:31:24 -06:00
|
|
|
import DeleteForeverIcon from '@material-symbols/svg-600/outlined/delete_forever.svg?react';
|
2023-10-24 12:45:08 -05:00
|
|
|
|
2023-05-08 20:11:56 -05:00
|
|
|
import { Icon } from 'mastodon/components/icon';
|
2017-04-08 06:07:55 -05:00
|
|
|
|
2023-05-23 03:52:27 -05:00
|
|
|
export default class ClearColumnButton extends PureComponent {
|
2017-04-08 06:07:55 -05:00
|
|
|
|
2017-05-12 07:44:10 -05:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 06:07:55 -05:00
|
|
|
render () {
|
|
|
|
return (
|
2023-10-24 12:45:08 -05: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 06:07:55 -05:00
|
|
|
);
|
|
|
|
}
|
2017-05-20 10:31:47 -05:00
|
|
|
|
2017-04-21 13:05:35 -05:00
|
|
|
}
|