import { ReactNode } from "react"; import classNames from "@calcom/lib/classNames"; import Button from "./Button"; export type BaseCardProps = { image: string; variant: keyof typeof cardTypeByVariant; imageProps?: JSX.IntrinsicElements["img"]; title: string; description: string; containerProps?: JSX.IntrinsicElements["div"]; actionButton?: { href: string; child: ReactNode; }; }; const cardTypeByVariant = { AppStore: { image: "w-10 h-auto", card: "p-5 w-64", }, ProfileCard: { image: "w-9 h-auto rounded-full mb-4s", card: "w-80 p-4 hover:bg-gray-100", actionButton: "", }, }; export function Card({ image, title, description, variant, actionButton, containerProps, imageProps, }: BaseCardProps) { return (
{imageProps?.alt} {title}

{description}

{variant === "AppStore" && ( )}
); }