feat(SW-650): added sitewide alert to use sticky position hook

This commit is contained in:
Erik Tiekstra
2024-10-24 10:23:19 +02:00
parent 63dbbac014
commit fbdfeafcb5
7 changed files with 87 additions and 23 deletions

View File

@@ -11,5 +11,15 @@ export type GetSiteConfigRefData = z.infer<typeof siteConfigRefSchema>
export type GetSiteConfigData = z.input<typeof siteConfigSchema>
export type SiteConfig = z.output<typeof siteConfigSchema>
export type Alert = z.output<typeof alertSchema>
export type SidepeekContent = Alert["sidepeekContent"]
export type AlertOutput = z.output<typeof alertSchema>
export type SidepeekContent = AlertOutput["sidepeekContent"]
export type AlertPhoneContact = {
displayText: string
phoneNumber?: string
footnote?: string | null
}
export type Alert = Omit<AlertOutput, "phoneContact"> & {
phoneContact: AlertPhoneContact | null
}