{leadText}
++ const renderDaysUntilPlanStartText = (className) => { + if (!(subscriptionStatus === SCHEDULED)) { + return null; + } + + const now = moment(); + const planStart = moment(startDate); + const daysUntilPlanStart = planStart.diff(now, 'days'); + const hoursUntilPlanStart = planStart.diff(now, 'hours'); + + return ( + + Plan begins in { + daysUntilPlanStart > 0 ? `${daysUntilPlanStart} day${daysUntilPlanStart > 1 ? 's' : ''}` + : `${hoursUntilPlanStart} hour${hoursUntilPlanStart > 1 ? 's' : ''}` + } + + ); + }; + + const renderActions = () => { + const actions = createActions?.(subscription) || []; + + return actions.length > 0 && actions.map(action => ( + + )); + }; + + const renderCardHeader = () => { + const subtitle = ( +
- License assignments -
-- {allocated} of {total} -
-