mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 13:50:35 +08:00
23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import cn from 'classnames';
|
|
import styles from './styles.css';
|
|
import { t } from 'plugin-api/beta/client/services';
|
|
import { Icon } from 'plugin-api/beta/client/components/ui';
|
|
|
|
const RejectCommentAction = ({ rejectComment }) => (
|
|
<button
|
|
className={cn(styles.button, 'talk-plugin-moderation-actions-reject')}
|
|
onClick={rejectComment}
|
|
>
|
|
<Icon name="clear" className={styles.icon} />
|
|
{t('talk-plugin-moderation-actions.reject_comment')}
|
|
</button>
|
|
);
|
|
|
|
RejectCommentAction.propTypes = {
|
|
rejectComment: PropTypes.func,
|
|
};
|
|
|
|
export default RejectCommentAction;
|