import { gql } from "graphql-tag" import { AppDownloads } from "../Fragments/Footer/AppDownloads.graphql" import { SocialMedia } from "../Fragments/Footer/SocialMedia.graphql" import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql" import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql" import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql" import { CollectionPageLink } from "../Fragments/PageLink/CollectionPageLink.graphql" import { ContentPageLink } from "../Fragments/PageLink/ContentPageLink.graphql" import { DestinationCityPageLink } from "../Fragments/PageLink/DestinationCityPageLink.graphql" import { DestinationCountryPageLink } from "../Fragments/PageLink/DestinationCountryPageLink.graphql" import { DestinationOverviewPageLink } from "../Fragments/PageLink/DestinationOverviewPageLink.graphql" import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql" import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql" import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql" import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql" export const GetFooter = gql` query GetFooter($locale: String!) { all_footer(limit: 1, locale: $locale) { items { main_links { title open_in_new_tab link { href title } pageConnection { edges { node { ...AccountPageLink ...CampaignOverviewPageLink ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink ...HotelPageLink ...LoyaltyPageLink ...StartPageLink ...PromoCampaignPageLink } } } } secondary_links { title links { title open_in_new_tab pageConnection { edges { node { ...AccountPageLink ...CampaignOverviewPageLink ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink ...HotelPageLink ...LoyaltyPageLink ...StartPageLink ...PromoCampaignPageLink } } } link { href title } } } tertiary_links { title open_in_new_tab link { href title } pageConnection { edges { node { ...AccountPageLink ...CampaignOverviewPageLink ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink ...HotelPageLink ...LoyaltyPageLink ...StartPageLink ...PromoCampaignPageLink } } } } ...AppDownloads ...SocialMedia } } } ${AccountPageLink} ${CampaignOverviewPageLink} ${CampaignPageLink} ${CollectionPageLink} ${ContentPageLink} ${DestinationCityPageLink} ${DestinationCountryPageLink} ${DestinationOverviewPageLink} ${HotelPageLink} ${LoyaltyPageLink} ${StartPageLink} ${PromoCampaignPageLink} ${AppDownloads} ${SocialMedia} `