Files
talk/plugins/talk-plugin-akismet/client/components/SpamDetail.js
T
2018-02-16 14:34:04 -07:00

22 lines
501 B
JavaScript

import React from 'react';
import { CommentDetail } from 'plugin-api/beta/client/components';
import PropTypes from 'prop-types';
import { t } from 'plugin-api/beta/client/services';
const SpamLabel = () => (
<CommentDetail
icon={'bug_report'}
header={t('talk-plugin-akismet.spam_comment')}
info={t('talk-plugin-akismet.detected')}
/>
);
SpamLabel.propTypes = {
comment: PropTypes.shape({
actions: PropTypes.array,
spam: PropTypes.spam,
}),
};
export default SpamLabel;