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; @Input() currentPeg$: Observable; env: Env; constructor(private stateService: StateService) { } ngOnInit(): void { this.env = this.stateService.env; } }