import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';

import { Channel } from '../../../shared/models/eclModels';

@Component({
  selector: 'rtl-ecl-channel-liquidity-info',
  templateUrl: './channel-liquidity-info.component.html',
  styleUrls: ['./channel-liquidity-info.component.scss']
})
export class ECLChannelLiquidityInfoComponent {
  @Input() direction: string;
  @Input() totalLiquidity: number;
  @Input() allChannels: Channel[];

  constructor(private router: Router) {}

  goToChannels() {
    this.router.navigateByUrl('/ecl/peerschannels');
  }

}
