import type { Image } from "../image"
import type { AllRequestResponse } from "./utils/all"
import type { Edges } from "./utils/edges"

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

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

export type CurrentHeaderLinks = {
  links: CurrentHeaderLink[]
}

export type TopMenuCurrentHeaderLinks = {
  links: TopMenuHeaderLink[]
}

export type CurrentHeader = {
  frontpage_link_text: string
  logoConnection: Edges<Image>
  menu: CurrentHeaderLinks
  top_menu: TopMenuCurrentHeaderLinks
}

export type GetCurrentHeaderData = {
  all_current_header: AllRequestResponse<CurrentHeader>
}
