import { cva } from "class-variance-authority" import { IconByIconName } from "../Icons/IconByIconName" import { IconName } from "../Icons/iconName" import { Typography } from "../Typography" import styles from "./InfoBox.module.css" import type { VariantProps } from "class-variance-authority" const infoBoxVariants = cva(styles.infoBox, { variants: { theme: { "SAS-Blue": styles.sasBlue, Default: styles.default, }, }, defaultVariants: { theme: "Default", }, }) const iconVariants = cva(styles.iconContainer, { variants: { theme: { "SAS-Blue": styles.sasBlue, Default: styles.default, }, }, defaultVariants: { theme: "Default", }, }) export type Props = { heading: string text: string theme?: VariantProps["theme"] icon?: IconName } export function InfoBox({ heading, text, theme, icon }: Props) { return (
{icon && (
)}

{heading}

{text}

) }