Files
talk/plugins/talk-plugin-profile-data/client/mutations.js
T
2018-04-09 15:58:31 -06:00

20 lines
404 B
JavaScript

import { withMutation } from 'plugin-api/beta/client/hocs';
import { gql } from 'react-apollo';
export const withRequestDownloadLink = withMutation(
gql`
mutation DownloadCommentHistory {
requestDownloadLink {
errors {
translation_key
}
}
}
`,
{
props: ({ mutate }) => ({
requestDownloadLink: () => mutate({ variables: {} }),
}),
}
);