2022-09-09 18:14:16 +00:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2024-10-22 21:05:01 +09:00
|
|
|
import { StateService } from '@app/services/state.service';
|
2022-09-09 18:14:16 +00:00
|
|
|
import { Observable, merge, of } from 'rxjs';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-preview-title',
|
|
|
|
templateUrl: './preview-title.component.html',
|
|
|
|
styleUrls: [],
|
|
|
|
})
|
|
|
|
export class PreviewTitleComponent implements OnInit {
|
|
|
|
network$: Observable<string>;
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
public stateService: StateService,
|
|
|
|
) { }
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
this.network$ = merge(of(''), this.stateService.networkChanged$);
|
|
|
|
}
|
|
|
|
}
|