Files
talk/plugins/talk-plugin-akismet/client/components/SpamDetail.js
T
2018-02-06 13:44:28 -07:00

22 lines
498 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={'add_box'}
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;