mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
13 lines
348 B
JavaScript
13 lines
348 B
JavaScript
import {compose} from 'react-apollo';
|
|
|
|
import Button from '../components/Button';
|
|
import {can} from 'plugin-api/beta/client/services';
|
|
import {excludeIf, withTags} from 'plugin-api/beta/client/hocs';
|
|
|
|
const enhance = compose(
|
|
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),
|
|
withTags('featured')
|
|
);
|
|
|
|
export default enhance(Button);
|