mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 15:34:09 +08:00
22 lines
646 B
JavaScript
22 lines
646 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);
|