import gql from 'graphql-tag' ; import { slices } from './fragments' ; export const GET_ARTICLE_QUERY = gql `
  query GetSingleArticle($input: GetSingleArticleInput!) {
    getSingleArticle(input: $input) {
      id
      slug
      title
      shortTitle
      intro
      importance
      showTableOfContents
      body {
        ...AllSlices
      }
      processEntry {
        id
        type
        processTitle
        processLink
        openLinkInModal
        buttonText
      }
      organization {
        title
        shortTitle
        slug
        link
        logo {
          url
          width
          height
        }
        footerItems {
          title
          content {
            ...HtmlFields
          }
          link {
            text
            url
          }
        }
      }
      relatedOrganization {
        title
        slug
        link
        logo {
          url
          width
          height
        }
      }
      responsibleParty {
        title
        slug
        link
        logo {
          url
          width
          height
        }
      }
      group {
        title
        slug
        description
      }
      category {
        id
        title
        slug
        description
      }
      relatedArticles {
        title
        slug
      }
      relatedContent {
        text
        url
      }
      subArticles {
        title
        slug
        body {
          ...AllSlices
        }
        showTableOfContents
      }
      featuredImage {
        url
        title
        width
        height
      }
    }
  }
  ${ slices }
` ; export const GET_CONTENT_SLUG = gql `
  query GetContentSlug($input: GetContentSlugInput!) {
    getContentSlug(input: $input) {
      id
      slug {
        en
        is
      }
      type
    }
  }
` ;