fix: sync current header with static-pages

This commit is contained in:
Christel Westerberg
2024-05-24 13:22:15 +02:00
parent 19d8b757cd
commit dd930688fc
22 changed files with 612 additions and 148 deletions

View File

@@ -0,0 +1,36 @@
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 TopMenuCurrentHeaderLink = {
link: {
href: string
title: string
}
show_on_mobile: boolean
sort_order_mobile: number
}
export type CurrentHeaderLinks = {
links: CurrentHeaderLink[]
}
export type TopMenuCurrentHeaderLinks = {
links: TopMenuCurrentHeaderLink[]
}
export type CurrentHeader = {
frontpage_link_text: string
logoConnection: Edges<Image>
menu: CurrentHeaderLinks
top_menu: TopMenuCurrentHeaderLinks
}
export type GetCurrentHeaderData = {
all_current_header: AllRequestResponse<CurrentHeader>
}