fix: sync current header with static-pages
This commit is contained in:
36
types/requests/currentHeader.ts
Normal file
36
types/requests/currentHeader.ts
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user