import React from 'react' import { BaseSection, SectionContentSize } from '../layout/section/baseSection' import { TextBody } from '../typography/body' import { TextDisplay1 } from '../typography/display1' import { StyledCountsCard } from './CountsCard.style' type CountCard = Readonly<{ title: string description: string }> export type CountsCardProps = Readonly<{ cards: ReadonlyArray }> export const CountsCard = ({ cards }: CountsCardProps) => { return ( {cards.map( ({ title, description }: CountCard): JSX.Element => ( {title} {description} ), )} ) }