import React from 'react' import { QrCard, QrCardProps } from '../qrCard' import { BannerElements, StyledBanner } from './Banner.style' type Copy = Readonly<{ heading: string; paragraph?: string }> type CTALinks = Array type CTAButtons = Array export type BannerProps = Readonly<{ copy: Copy actions?: CTALinks | CTAButtons qrcode?: QrCardProps }> export const Banner = ({ copy, actions, qrcode }: BannerProps) => ( {copy.heading} {copy.paragraph} {actions && {actions}} {qrcode && ( )} )