import type { Image } from "../image"
import type { EdgesWithTotalCount } from "./utils/edges"

export type HeaderLink = {
  href: string
  title: string
}

export type TopMenuHeaderLink = {
  link: {
    href: string
    title: string
  }
  show_on_mobile: boolean
  sort_order_mobile: number
}

export type HeaderLinks = {
  links: HeaderLink[]
}

export type TopMenuHeaderLinks = {
  links: TopMenuHeaderLink[]
}

export type HeaderQueryData = {
  all_header: {
    items: {
      frontpage_link_text: string
      logoConnection: EdgesWithTotalCount<Image>
      menu: HeaderLinks
      top_menu: TopMenuHeaderLinks
    }[]
  }
}
