mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 17:16:27 +08:00
35 lines
774 B
JavaScript
35 lines
774 B
JavaScript
import {gql} from 'react-apollo';
|
|
import CommentLabels from '../components/CommentLabels';
|
|
import withFragments from 'coral-framework/hocs/withFragments';
|
|
import {getSlotFragmentSpreads} from 'coral-framework/utils';
|
|
|
|
const slots = [
|
|
'adminCommentLabels',
|
|
];
|
|
|
|
export default withFragments({
|
|
root: gql`
|
|
fragment CoralAdmin_CommentLabels_root on RootQuery {
|
|
__typename
|
|
${getSlotFragmentSpreads(slots, 'root')}
|
|
}
|
|
`,
|
|
comment: gql`
|
|
fragment CoralAdmin_CommentLabels_comment on Comment {
|
|
hasParent
|
|
status
|
|
actions {
|
|
__typename
|
|
... on FlagAction {
|
|
reason
|
|
}
|
|
user {
|
|
id
|
|
roles
|
|
}
|
|
}
|
|
${getSlotFragmentSpreads(slots, 'comment')}
|
|
}
|
|
`
|
|
})(CommentLabels);
|