['type'],
};
};
const nextBenefitTierEpochsValue = nextBenefitTierValue
? nextBenefitTierValue.epochs - epochsValue
: 0;
return (
<>
{t('Apply a referral code')}
{t(
'Apply a referral code to access the discount benefits of the current program.'
)}
{noFunds ? (
) : (
errors.code && (
{errors.code.message === SPAM_PROTECTION_ERR ? (
) : (
errors.code.message?.toString()
)}
)
)}
{validateCode(codeField, t) === true && previewLoading && !previewData ? (
) : null}
{/* TODO: Re-check plural forms once i18n is updated */}
{previewData && previewData.isEligible ? (
{t(
'youAreJoiningTheGroup',
'You are joining the group shown, but will not have access to benefits until you have completed at least {{count}} epochs.',
{ count: nextBenefitTierEpochsValue }
)}
) : null}
>
);
};