mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 22:35:19 +08:00
14 lines
346 B
JavaScript
14 lines
346 B
JavaScript
import { compose } from 'react-apollo';
|
|
import { excludeIf } from 'plugin-api/beta/client/hocs';
|
|
import ToxicDetail from './ToxicDetail';
|
|
import { isToxic } from '../utils';
|
|
|
|
const enhance = compose(
|
|
excludeIf(
|
|
({ comment: { toxicity, actions } }) =>
|
|
toxicity === null || isToxic(actions)
|
|
)
|
|
);
|
|
|
|
export default enhance(ToxicDetail);
|