mirror of
https://github.com/mempool/mempool.git
synced 2025-03-30 04:32:06 +02:00
25 lines
676 B
TypeScript
25 lines
676 B
TypeScript
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
import { INodesStatistics } from '../../interfaces/node-api.interface';
|
|
|
|
@Component({
|
|
selector: 'app-channels-statistics',
|
|
templateUrl: './channels-statistics.component.html',
|
|
styleUrls: ['./channels-statistics.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class ChannelsStatisticsComponent implements OnInit {
|
|
@Input() statistics$: Observable<INodesStatistics>;
|
|
mode: string = 'avg';
|
|
|
|
constructor() { }
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
switchMode(mode: 'avg' | 'med') {
|
|
this.mode = mode;
|
|
return false;
|
|
}
|
|
}
|