feat(m3u-collection-route): add M3uCollectionRouteComponent for unified collection page integration

This commit is contained in:
4gray committed 2026-03-28 15:44:43 +01:00
1 parent 4a7855895b
commit c0849ad43b
2 files changed
+23

No files matched your search

@@ -1 +1,2 @@
export * from './lib/m3u-collection-route/m3u-collection-route.component';
export * from './lib/video-player/video-player.component';
@@ -0,0 +1,22 @@
import {
ChangeDetectionStrategy,
Component,
input,
} from '@angular/core';
import { UnifiedCollectionPageComponent } from '@iptvnator/portal/shared/ui';
@Component({
selector: 'app-m3u-collection-route',
imports: [UnifiedCollectionPageComponent],
template: `
<app-unified-collection-page
[mode]="mode()"
[portalType]="portalType()"
/>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class M3uCollectionRouteComponent {
readonly mode = input<'favorites' | 'recent'>('favorites');
readonly portalType = input('m3u');
}