import gql from 'graphql-tag';
export const NAVIGATOR_ITEMS = gql `
  query navigatorItems(
    $first: Int!
    $after: String
    $resourceId: String
    $navigatorType: NavigatorType
    $previous: [NavigationHistoryEntryInput!]
    $language: String!
  ) {
    navigatorItems(
      first: $first
      after: $after
      language: $language
      resourceId: $resourceId
      navigatorType: $navigatorType
      previous: $previous
    ) {
      edges {
        node {
          resourceId
          navigatorType
          title
          count
          icon
        }
      }
      pageInfo {
        startCursor
        endCursor
        hasNextPage
        hasPreviousPage
      }
    }
  }
`;
export function getNavigatorItems(client, variables) {
    return client.query({
        variables,
        query: NAVIGATOR_ITEMS
    });
}
