mirror of
https://github.com/mempool/mempool.git
synced 2025-03-30 04:32:06 +02:00
25 lines
772 B
TypeScript
25 lines
772 B
TypeScript
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
import { Env, StateService } from '@app/services/state.service';
|
|
import { CurrentPegs } from '@app/interfaces/node-api.interface';
|
|
|
|
@Component({
|
|
selector: 'app-reserves-supply-stats',
|
|
templateUrl: './reserves-supply-stats.component.html',
|
|
styleUrls: ['./reserves-supply-stats.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class ReservesSupplyStatsComponent implements OnInit {
|
|
@Input() currentReserves$: Observable<CurrentPegs>;
|
|
@Input() currentPeg$: Observable<CurrentPegs>;
|
|
|
|
env: Env;
|
|
|
|
constructor(private stateService: StateService) { }
|
|
|
|
ngOnInit(): void {
|
|
this.env = this.stateService.env;
|
|
}
|
|
|
|
}
|