@switch (data.status) {
  @case ('ERROR') {
    <h1>Error</h1>
    <div>
      <p>Could not process uploaded file.</p>
      <p class="error">
        {{ data.errorMessage }}
      </p>
    </div>
    <div class="actions">
      <button ng-button [mat-dialog-close]="false">Close</button>
    </div>
  }
  @case ('INVALID_VERSION') {
    <h1>Warning</h1>
    <div>
      <p>
        The file you are attempting to upload was recorded in a different format than the one
        supported by your current Angular DevTools version.
      </p>
      <p>
        Current format version:
        <span class="version profiler-version">{{ data.profilerVersion }}</span>
      </p>
      <p>
        Format version of uploaded file:
        <span class="version imported-version">{{ data.importedVersion }}</span>
      </p>
      <p>Files recorded in older versions may no longer be compatible. Do you wish to continue?</p>
    </div>
    <div class="actions">
      <button ng-button [mat-dialog-close]="false">No, Thanks</button>
      <button ng-button btnType="secondary" [mat-dialog-close]="true">Yes</button>
    </div>
  }
}
