import { cx } from "class-variance-authority" import Link from "next/link" import Image from "@scandic-hotels/design-system/Image" import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" import { Typography } from "@scandic-hotels/design-system/Typography" import { getButtonTheme } from "./utils" import { cardVariants } from "./variants" import styles from "./card.module.css" import type { CardProps } from "./card" export default function Card({ primaryButton, secondaryButton, scriptedTopTitle, heading, bodyText, className, theme, backgroundImage, imageGradient, onPrimaryButtonClick, onSecondaryButtonClick, height, }: CardProps) { const buttonTheme = getButtonTheme(theme) return (
{backgroundImage && (
{backgroundImage.meta.alt
)}
{scriptedTopTitle && (
{scriptedTopTitle}
)}

{heading}

{bodyText && (

{bodyText}

)}
{primaryButton ? ( ) : null} {secondaryButton ? ( ) : null}
) }