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