import ButtonLink from '../ButtonLink' import Image from '../Image' import { Typography } from '../Typography' import { getButtonProps } from './utils' import { infoCardVariants } from './variants' import styles from './infoCard.module.css' import ImageFallback from '../ImageFallback' import type { InfoCardProps } from './types' export function InfoCard({ primaryButton, secondaryButton, topTitle, heading, bodyText, className, theme, height, backgroundImage, topTitleAngled, hotelTheme, }: InfoCardProps) { const classNames = infoCardVariants({ theme, hotelTheme, topTitleAngled, height, className, }) const buttonProps = getButtonProps(theme, hotelTheme) return (
{theme === 'Image' ? (
{backgroundImage ? ( {backgroundImage.alt ) : ( )}
) : null}
{topTitle ? ( {topTitle} ) : null}

{heading}

{bodyText ? (

{bodyText}

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