import Title from "@/components/Title" import Button from "../Button" import { ButtonProps } from "../Button/button" import Divider from "../Divider" import Link from "../Link" import { CardProps } from "./card" import { cardVariants } from "./variants" import styles from "./card.module.css" export default function Card({ primaryButton, secondaryButton, scriptedTopTitle, heading, bodyText, backgroundImage, className, theme, }: CardProps) { let buttonTheme: ButtonProps["theme"] = "primaryLight" switch (theme) { case "one": buttonTheme = "primaryLight" break case "two": buttonTheme = "secondaryLight" break case "three": buttonTheme = "tertiaryLight" break } return (
{scriptedTopTitle ? (
{scriptedTopTitle}
) : null} {heading ? ( {heading} ) : null} {bodyText ?

{bodyText}

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