import type React from 'react'; export interface downloadCardProps { client: string; imgUrl: string; url: string; notes: string; buttonText: string; } export const DownloadCard = ({ client, imgUrl, url, notes, buttonText, }: downloadCardProps): JSX.Element => { const button = React.createElement( 'a', {href: url, className: "button button--secondary button--block"}, buttonText ) const img = React.createElement( 'img', {style: {height: '4rem'}, src: imgUrl, href: url}, null ) const anchorImg = {buttonText ? null : img} return (