( {
label: (
{ localize( displayName ) }
{ formatPrice(
id,
( price[ currency ] || 0 ) +
enabledAddons.reduce(
( acc, a ) =>
acc +
( a.price[
currency
] || 0 ),
0
),
currency
) }
{ localize( description ) }
) as unknown as string,
value: id,
} )
) }
onChange={ ( option ) => {
if ( ! option ) {
return;
}
if ( 'nab-enterprise-placeholder' === option ) {
showEnterprise();
return;
}
setSelectedOption( option );
} }
/>
) : (
{ _x(
'Something went wrong while retrieving plans. Please contact Nelio support.',
'user',
'nelio-ab-testing'
) }
) }