mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 02:02:25 +08:00
22 lines
501 B
JavaScript
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;
|