38 lines
624 B
TypeScript
38 lines
624 B
TypeScript
import type { Edges } from "./utils/edges"
|
|
import type { Image } from "../image"
|
|
|
|
export type HeaderLink = {
|
|
link: {
|
|
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: Edges<Image>
|
|
menu: HeaderLinks
|
|
top_menu: TopMenuHeaderLinks
|
|
}[]
|
|
}
|
|
}
|