fix: validation for header
This commit is contained in:
@@ -1,41 +1,19 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import {
|
||||
validateLinkItem,
|
||||
validateLinksWithType,
|
||||
validateSecondaryLinks,
|
||||
} from "@/server/routers/contentstack/base/output"
|
||||
|
||||
import type { LanguageSwitcherData } from "@/types/requests/languageSwitcher"
|
||||
|
||||
export type FooterLink = z.output<typeof validateLinkItem>
|
||||
import type {
|
||||
FooterLink,
|
||||
FooterLinkWithType,
|
||||
FooterSecondaryNavGroup,
|
||||
} from "@/types/trpc/routers/contentstack/footer"
|
||||
|
||||
export type FooterMainNavProps = {
|
||||
mainLinks: FooterLink[]
|
||||
}
|
||||
|
||||
type FooterSecondaryNavGroup = z.output<typeof validateSecondaryLinks>
|
||||
|
||||
type FooterLinkWithType = z.output<typeof validateLinksWithType>
|
||||
|
||||
type FooterAppDownloads = {
|
||||
title: string
|
||||
links: FooterLinkWithType
|
||||
}
|
||||
|
||||
type FooterSocialMedia = {
|
||||
links: FooterLinkWithType
|
||||
}
|
||||
|
||||
export type FooterSecondaryNavProps = {
|
||||
secondaryLinks: FooterSecondaryNavGroup
|
||||
appDownloads: FooterAppDownloads
|
||||
}
|
||||
|
||||
export type FooterDetailsProps = {
|
||||
socialMedia?: FooterSocialMedia
|
||||
tertiaryLinks?: FooterLink[]
|
||||
languageUrls?: LanguageSwitcherData
|
||||
}
|
||||
|
||||
export type FooterNavigationProps = FooterMainNavProps & FooterSecondaryNavProps
|
||||
|
||||
Reference in New Issue
Block a user