var ShopRow = (props) => {
var shop = props.shop,
editShopUrl = props.editShopUrl.replace(':id', shop.id),
domainName = shop.attributes['domain'],
countryName = shop.attributes['country-name'],
currency = shop.attributes['currency'],
planName = shop.attributes['plan-display-name'],
editSubscriptionUrl = props.editSubscriptionUrl
.replace(':shop_id', shop.id)
.replace(':id', shop.attributes['current-subscription-id']),
subscriptionPlan = shop.attributes['current-subscription-display-plan'],
subscriptionAmount = shop.attributes['current-subscription-display-amount'],
subscriptionSource = shop.attributes['current-subscription-source'],
installedDuration = shop.attributes['installed-duration'];
var subscriptionContent = null;
if(shop.attributes['current-subscription-id']) {
subscriptionContent = {subscriptionPlan} ({subscriptionAmount});
} else {
subscriptionContent = {subscriptionPlan} ({subscriptionAmount});
}
var planCodeContent = null;
if(shop.attributes['current-subscription-display-plan-code']) {
planCodeContent =
{shop.attributes['current-subscription-display-plan-code']};
}
return (