import React from "react"; import { CtaCalloutProps, ThemeKey } from "./types"; import { Text } from "@shared/components/text"; import { Button } from "@shared/contentful/blocks/button"; export const CtaCallout: React.FC = ({ title, background = "white", button, color, contentAlignment, description, descriptionAlignment, enableHeading, subTitle, maxWidth = true, onModalButtonClick, renderCheckPlans, }) => { const bgColorClasses: Record = { navy: "bg-bg-fill-inverse", green: "bg-bg-fill-success", blue: "bg-bg-fill-brand", purple: "bg-bg-fill-brand-tertiary", yellow: "bg-bg-fill-brand-accent", white: "bg-bg", }; return (
{title && ( {title} )} {subTitle && ( {subTitle} )} {description && (
{description}
)} {button || renderCheckPlans ? (
) : null}
); }; export default CtaCallout;