import { gql } from "graphql-tag" import { Alert, AlertRef } from "../Fragments/Alert.graphql" import { System } from "../Fragments/System.graphql" export const GetSiteConfig = gql` query GetSiteConfig($locale: String!) { all_site_config(limit: 1, locale: $locale) { items { sitewide_alert { alerts { booking_widget_disabled alertConnection { edges { node { ...Alert } } } } } } } } ${Alert} ` export const GetSiteConfigRef = gql` query GetSiteConfigRef($locale: String!) { all_site_config(limit: 1, locale: $locale) { items { sitewide_alert { alerts { alertConnection { edges { node { ...AlertRef } } } } } system { ...System } } } } ${System} ${AlertRef} `