import React, { FC } from 'react'; type Props = { receiptText: string; helpText?: React.JSX.Element | null; showGoTo?: boolean; buttons?: IReceiptButton[]; }; const AUReceiptComponent: FC = ({ receiptText, helpText = null, showGoTo = true, buttons = [], }) => { const renderButtons = (buttons || []).map((btn) => {btn.gotoText}); return (

{helpText} { showGoTo && (
{renderButtons}
) }

); }; AUReceiptComponent.displayName = 'AUReceiptComponent'; export default AUReceiptComponent;