2023-05-05 01:38:58 +04:00
|
|
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
2023-05-05 01:49:11 +04:00
|
|
|
import { Observable } from 'rxjs';
|
2023-05-05 01:38:58 +04:00
|
|
|
import { NavigationService } from '../../../services/navigation.service';
|
|
|
|
import { Env, StateService } from '../../../services/state.service';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-global-footer',
|
|
|
|
templateUrl: './global-footer.component.html',
|
|
|
|
styleUrls: ['./global-footer.component.scss'],
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
|
})
|
|
|
|
export class GlobalFooterComponent implements OnInit {
|
|
|
|
env: Env;
|
|
|
|
networkPaths: { [network: string]: string };
|
|
|
|
officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
|
2023-05-05 01:49:11 +04:00
|
|
|
networkPaths$: Observable<Record<string, string>>;
|
2023-05-05 01:38:58 +04:00
|
|
|
|
|
|
|
constructor(
|
|
|
|
public stateService: StateService,
|
|
|
|
private navigationService: NavigationService,
|
|
|
|
) {}
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
|
|
|
this.env = this.stateService.env;
|
2023-05-05 01:49:11 +04:00
|
|
|
this.networkPaths$ = this.navigationService.subnetPaths;
|
2023-05-05 01:38:58 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|