mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
25 lines
648 B
JavaScript
25 lines
648 B
JavaScript
import {gql} from 'react-apollo';
|
|
import CommentDetails from '../components/CommentDetails';
|
|
import {getSlotFragmentSpreads} from 'coral-framework/utils';
|
|
import withFragments from 'coral-framework/hocs/withFragments';
|
|
|
|
const slots = [
|
|
'adminCommentDetailArea',
|
|
'adminCommentMoreDetails',
|
|
];
|
|
|
|
export default withFragments({
|
|
root: gql`
|
|
fragment CoralAdmin_CommentDetails_root on RootQuery {
|
|
__typename
|
|
${getSlotFragmentSpreads(slots, 'root')}
|
|
}
|
|
`,
|
|
comment: gql`
|
|
fragment CoralAdmin_CommentDetails_comment on Comment {
|
|
__typename
|
|
${getSlotFragmentSpreads(slots, 'comment')}
|
|
}
|
|
`
|
|
})(CommentDetails);
|