import Image, { StaticImageData } from "next/image"; import { ReactNode } from "react"; type ResourceCardProps = { title?: string; description?: string; btnLabel?: string; imageAlt?: string; image?: StaticImageData; btnHref?: string; BtnIcon: ReactNode; }; export default function ResourceCard({ title, BtnIcon, description, btnLabel: downloadLabel, imageAlt, image, btnHref: downloadHref, }: ResourceCardProps) { return (
{image && (
{imageAlt
)}

{title}

{description}

{BtnIcon} {downloadLabel}
); }