#import "../System.graphql"

#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"

fragment CardBlock on Card {
  background_image
  body_text
  has_primary_button
  has_secondary_button
  heading
  scripted_top_title
  title
  primary_button {
    cta_text
    is_contentstack_link
    open_in_new_tab
    external_link {
      href
      title
    }
    linkConnection {
      edges {
        node {
          __typename
          ...AccountPageLink
          ...ContentPageLink
          ...LoyaltyPageLink
        }
      }
    }
  }
  secondary_button {
    cta_text
    is_contentstack_link
    open_in_new_tab
    external_link {
      href
      title
    }
    linkConnection {
      edges {
        node {
          __typename
          ...AccountPageLink
          ...ContentPageLink
          ...LoyaltyPageLink
        }
      }
    }
  }
  system {
    ...System
  }
}
