|
|
|
|
@ -13,7 +13,6 @@ import PlanCardBase from './PlanCardBase'; |
|
|
|
|
|
|
|
|
|
type LicenseLimits = { |
|
|
|
|
activeUsers: { max: number; value?: number }; |
|
|
|
|
monthlyActiveContacts: { max: number; value?: number }; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
type PlanCardProps = { |
|
|
|
|
@ -33,17 +32,12 @@ const PlanCardPremium = ({ licenseInformation, licenseLimits }: PlanCardProps): |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<PlanCardBase name={planName.data ?? ''}> |
|
|
|
|
{licenseLimits?.activeUsers.max === Infinity || |
|
|
|
|
(licenseLimits?.monthlyActiveContacts.max === Infinity && ( |
|
|
|
|
<Box fontScale='p2' display='flex' mb={4} alignItems='center'> |
|
|
|
|
<Icon name='lightning' size={24} mie={12} /> |
|
|
|
|
{licenseLimits?.activeUsers.max === Infinity && |
|
|
|
|
licenseLimits?.monthlyActiveContacts.max === Infinity && |
|
|
|
|
t('Unlimited_seats_MACs')} |
|
|
|
|
{licenseLimits?.activeUsers.max === Infinity && licenseLimits?.monthlyActiveContacts.max !== Infinity && t('Unlimited_seats')} |
|
|
|
|
{licenseLimits?.activeUsers.max !== Infinity && licenseLimits?.monthlyActiveContacts.max === Infinity && t('Unlimited_MACs')} |
|
|
|
|
</Box> |
|
|
|
|
))} |
|
|
|
|
{licenseLimits?.activeUsers.max === Infinity && ( |
|
|
|
|
<Box fontScale='p2' display='flex' mb={4} alignItems='center'> |
|
|
|
|
<Icon name='lightning' size={24} mie={12} /> |
|
|
|
|
{t('Unlimited_seats')} |
|
|
|
|
</Box> |
|
|
|
|
)} |
|
|
|
|
{visualExpiration && ( |
|
|
|
|
<Box fontScale='p2' display='flex' mb={4} alignItems='center'> |
|
|
|
|
<Icon name='calendar' size={24} mie={12} /> |
|
|
|
|
|