import { gql } from 'graphql-request'

export const CONTACT_PAGE_FRAGMENT = gql`
  fragment ContactPageFragment on Page {
    title
    content
    seo {
      fullHead
    }
    featuredImage {
      node {
        imageUrl: sourceUrl
        alt: altText
        placeholder: sourceUrl(size: THUMBNAIL)
      }
    }
    contactPageContent {
      heroTitle
      sideBarContent {
        address
        address2
        contactEmail
        faxNumber
        officeNumber
        sidebarText
        tollFreeNumber
        fieldGroupName
      }
      associatedFormId
    }
    customCtaSection {
      enableCta
      ctaText
      ctaLink {
        title
        url
      }
    }
  }
`

export const CONTACT_MENU_FRAGMENT = gql`
  fragment ContactMenuFragment on Menu {
    name
    menuItems {
      nodes {
        label
        cssClasses
        path
      }
    }
  }
`
