2017-05-02 17:04:16 -07:00
|
|
|
import React from 'react';
|
2017-04-21 11:05:35 -07:00
|
|
|
import PropTypes from 'prop-types';
|
2017-06-12 03:26:23 -07:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2019-01-31 15:14:05 -08:00
|
|
|
import Icon from 'mastodon/components/icon';
|
2017-04-08 04:07:55 -07:00
|
|
|
|
2018-03-05 22:28:26 -08:00
|
|
|
export default class ClearColumnButton extends React.PureComponent {
|
2017-04-08 04:07:55 -07:00
|
|
|
|
2017-05-12 05:44:10 -07:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 04:07:55 -07:00
|
|
|
render () {
|
|
|
|
return (
|
2019-01-31 15:14:05 -08: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 04:07:55 -07:00
|
|
|
);
|
|
|
|
}
|
2017-05-20 08:31:47 -07:00
|
|
|
|
2017-04-21 11:05:35 -07:00
|
|
|
}
|