import ButtonLink from "@scandic-hotels/design-system/ButtonLink" import Image from "@scandic-hotels/design-system/Image" import { Typography } from "@scandic-hotels/design-system/Typography" import styles from "./fullWidthCampaign.module.css" import type { FullWidthCampaign } from "@/types/trpc/routers/contentstack/startPage" interface FullWidthCampaignProps { content: FullWidthCampaign headingLevel?: "h1" | "h2" } export default function FullWidthCampaign({ content, headingLevel = "h2", }: FullWidthCampaignProps) { const { background_image, primary_button, secondary_button } = content const Hx = headingLevel return (
{background_image ? ( {background_image.meta.alt ) : null}
{content.scripted_top_title}
{content.heading}

{content.body_text}

{content.has_primary_button ? ( {primary_button.title} ) : null} {content.has_secondary_button ? ( {secondary_button.title} ) : null}
) }