import React from 'react' import { ButtonProps } from '../button' import { ContentDivider } from '../divider/contentDivider' import { TotalVoucherIllustration } from '../illustration/totalVoucher' import { ItemInfo } from '../itemInfo' import { BaseSection, SectionContentSize } from '../layout/section/baseSection' import { StyledTotalVoucher } from './TotalVoucher.style' export type TotalVoucherProps = Readonly<{ title: string subTitle: JSX.Element | string terms: Readonly<{ href: JSX.Element | string label: string }> stepsTitle: JSX.Element | string steps: ReadonlyArray< Readonly<{ label: string description: string }> > button: React.ReactElement }> export const TotalVoucher = ({ title, subTitle, terms, stepsTitle, steps, button, }: TotalVoucherProps) => { return ( {title} {subTitle} {stepsTitle} {steps.map( ({ label, description }): JSX.Element => ( } key={label} mainTitle={label} mainInfo={description} /> ), )} {button} ) }