mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:05:24 +08:00
20 lines
404 B
JavaScript
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: {} }),
|
|
}),
|
|
}
|
|
);
|