import type { z } from "zod"

import type {
  alertSchema,
  siteConfigRefSchema,
  siteConfigSchema,
} from "@/server/routers/contentstack/base/output"

export type GetSiteConfigRefData = z.infer<typeof siteConfigRefSchema>

export type GetSiteConfigData = z.input<typeof siteConfigSchema>
export type SiteConfig = z.output<typeof siteConfigSchema>

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
}
