import ButtonLink from "@scandic-hotels/design-system/ButtonLink" import Image from "@scandic-hotels/design-system/Image" import Subtitle from "@scandic-hotels/design-system/Subtitle" import { Typography } from "@scandic-hotels/design-system/Typography" import TeaserCardSidepeek from "./Sidepeek" import { teaserCardVariants } from "./variants" import styles from "./teaserCard.module.css" import type { TeaserCardProps } from "@/types/components/teaserCard" export default function TeaserCard({ title, description, primaryButton, secondaryButton, sidePeekButton, sidePeekContent, image, intent, alwaysStack = false, className, }: TeaserCardProps) { const classNames = teaserCardVariants({ intent, alwaysStack, className }) return (
{image && (
{image.meta?.alt
)}
{title}

{description}

{sidePeekButton && sidePeekContent ? ( ) : (
{primaryButton && ( {primaryButton.title} )} {secondaryButton && ( {secondaryButton.title} )}
)}
) }