pubsweet-component-wax
Version:
PubSweet component for the Wax collaborative document editor
27 lines (22 loc) • 468 B
JavaScript
import React from 'react'
import { Query } from '@apollo/react-components'
import gql from 'graphql-tag'
const GET_CUSTOM_TAGS = gql`
query GetCustomTags {
getCustomTags {
id
label
tagType
}
}
`
const getCustomTagsQuery = props => {
const { render } = props
return (
<Query fetchPolicy="cache-and-network" query={GET_CUSTOM_TAGS}>
{render}
</Query>
)
}
export { GET_CUSTOM_TAGS }
export default getCustomTagsQuery