<div fxLayout="column" fxFlex="100" fxLayoutAlign="space-between stretch">
  <div fxLayout="row">
    <button mat-flat-button color="primary" type="submit" tabindex="1" (click)="onOpenChannel()">Open Channel</button>
  </div>
  <div fxLayout="column" fxFlex="100" class="bordered-box">
    <mat-tab-group mat-stretch-tabs="false" mat-align-tabs="start" [(selectedIndex)]="activeLink" (selectedTabChange)="onSelectedTabChange($event)">
      <mat-tab>
        <ng-template mat-tab-label>
          <span matBadgeOverlap="false" class="tab-badge" matBadge="{{numOfOpenChannels}}">Open</span>
        </ng-template>
      </mat-tab>
      <mat-tab>
        <ng-template mat-tab-label>
          <span matBadgeOverlap="false" class="tab-badge" matBadge="{{numOfPendingChannels}}">Pending</span>
        </ng-template>
      </mat-tab>
      <mat-tab>
        <ng-template mat-tab-label>
          <span matBadgeOverlap="false" class="tab-badge" matBadge="{{numOfInactiveChannels}}">Inactive</span>
        </ng-template>
      </mat-tab>
    </mat-tab-group>
    <div fxLayout="column" fxFlex="100" fxLayoutAlign="space-between stretch" class="padding-gap-x-large">
      <router-outlet></router-outlet>
    </div>
  </div>
</div>
