2020-03-27 13:59:38 -07:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
2020-05-28 15:52:07 -07:00
|
|
|
import Icon from 'soapbox/components/icon';
|
2020-03-27 13:59:38 -07:00
|
|
|
|
|
|
|
export default class ClearColumnButton extends React.PureComponent {
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2020-04-14 14:47:35 -07:00
|
|
|
render() {
|
2020-03-27 13:59:38 -07:00
|
|
|
return (
|
|
|
|
<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>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|