{{#if this.licenseExpired}}
  <div class="license-banner-wrapper" data-test-license-banner data-test-license-banner-expired>
    <AlertBanner
      @type="danger"
      @title="License expired"
      @message="Your Vault license expired on {{date-format
        @expiry
        'MMM d, yyyy'
      }}. Add a new license to your configuration and restart Vault."
      class="message-marginless"
    >
      <DocLink @path="/vault/tutorials/enterprise/hashicorp-enterprise-license">
        <Icon @name="learn-link" />
        Read documentation
      </DocLink>
    </AlertBanner>
  </div>
{{else if (lte this.licenseExpiringInDays 30)}}
  <div class="license-banner-wrapper" data-test-license-banner data-test-license-banner-warning>
    <AlertBanner
      @type="warning"
      @title="Vault license expiring"
      @message="Your Vault license will expire in {{this.licenseExpiringInDays}} days at {{date-format
        @expiry
        'hh:mm:ss a'
      }} on {{date-format @expiry 'MMM d, yyyy'}}. {{if
        @autoloaded
        'Add a new license to your configuration.'
        'Keep in mind that your next license will need to be autoloaded'
      }}"
      class="message-marginless"
    >
      <DocLink @path="/vault/tutorials/enterprise/hashicorp-enterprise-license">
        <Icon @name="learn-link" />
        Read documentation
      </DocLink>
    </AlertBanner>
  </div>
{{/if}}