feat(SW-508): Added hotel alerts

This commit is contained in:
Erik Tiekstra
2024-10-22 10:49:01 +02:00
parent 0fe4a7c42c
commit a29657a6b2
8 changed files with 82 additions and 36 deletions

View File

@@ -8,8 +8,8 @@ import type { SidepeekContent } from "@/types/trpc/routers/contentstack/siteConf
export interface AlertProps extends VariantProps<typeof alertVariants> {
className?: string
type: AlertTypeEnum
heading?: string
text: string
heading?: string | null
text?: string | null
phoneContact?: {
displayText: string
phoneNumber?: string

View File

@@ -27,6 +27,10 @@ export default function Alert({
})
const Icon = getIconByAlertType(type)
if (!text && !heading) {
return null
}
return (
<section className={classNames}>
<div className={styles.content}>