- - ( - - { - const { params: { enterpriseSlug } } = routeProps.match; - const isExpired = moment().isAfter(subscription.expirationDate); - const actions = []; - - if (!isExpired) { - actions.push({ - variant: 'primary', - to: `/${enterpriseSlug}/admin/${ROUTE_NAMES.bulkEnrollment}/${subscription.uuid}`, - buttonText: 'Enroll learners', - }); - } - - return actions; - }} - /> - - )} - exact - /> - - -