fix: trpc endpoint for footer data
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { NavigationItem } from "@/types/requests/footer"
|
||||
import { NavigationItem } from "@/server/routers/contentstack/config/output"
|
||||
|
||||
export type FooterNavigationProps = {
|
||||
linkGroups: NavigationItem[]
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
import type { Image } from "../image"
|
||||
import type { AllRequestResponse } from "./utils/all"
|
||||
import type { EdgesWithTotalCount } from "./utils/edges"
|
||||
|
||||
type AppDownload = {
|
||||
href: string
|
||||
imageConnection: EdgesWithTotalCount<Image>
|
||||
}
|
||||
|
||||
export type Link = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
export type NavigationItem = {
|
||||
links: Link[]
|
||||
title: string
|
||||
}
|
||||
|
||||
type SocialMedium = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
export type Footer = {
|
||||
title: string
|
||||
about: {
|
||||
title: string
|
||||
text: string
|
||||
}
|
||||
app_downloads: {
|
||||
title: string
|
||||
app_store: AppDownload
|
||||
google_play: AppDownload
|
||||
}
|
||||
logoConnection: EdgesWithTotalCount<Image>
|
||||
navigation: NavigationItem[]
|
||||
social_media: {
|
||||
title: string
|
||||
facebook: SocialMedium
|
||||
instagram: SocialMedium
|
||||
twitter: SocialMedium
|
||||
}
|
||||
trip_advisor: {
|
||||
title: string
|
||||
logoConnection: EdgesWithTotalCount<Image>
|
||||
}
|
||||
}
|
||||
|
||||
export type GetFooterData = {
|
||||
all_footer: AllRequestResponse<Footer>
|
||||
}
|
||||
Reference in New Issue
Block a user