mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 22:21:27 +08:00
11 lines
314 B
JavaScript
11 lines
314 B
JavaScript
import {compose} from 'react-apollo';
|
|
import {excludeIf} from 'plugin-api/beta/client/hocs';
|
|
import {can} from 'plugin-api/beta/client/services';
|
|
import Button from '../components/Button';
|
|
|
|
const enhance = compose(
|
|
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),
|
|
);
|
|
|
|
export default enhance(Button);
|