2022-02-06 01:20:26 +04:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2022-02-06 04:18:56 +04:00
|
|
|
import { Observable } from 'rxjs';
|
2024-10-22 21:05:01 +09:00
|
|
|
import { ApiService } from '@app/services/api.service';
|
|
|
|
import { StateService } from '@app/services/state.service';
|
2022-02-06 01:20:26 +04:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-assets-featured',
|
|
|
|
templateUrl: './assets-featured.component.html',
|
|
|
|
styleUrls: ['./assets-featured.component.scss']
|
|
|
|
})
|
|
|
|
export class AssetsFeaturedComponent implements OnInit {
|
|
|
|
featuredAssets$: Observable<any>;
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
private apiService: ApiService,
|
2024-03-24 15:41:18 +09:00
|
|
|
private stateService: StateService,
|
2022-02-06 01:20:26 +04:00
|
|
|
) { }
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
2024-03-24 15:41:18 +09:00
|
|
|
this.featuredAssets$ = this.apiService.listFeaturedAssets$(this.stateService.network);
|
2022-02-06 01:20:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|