mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 13:46:16 -08:00
25 lines
740 B
TypeScript
25 lines
740 B
TypeScript
import { Channel } from '@iptvnator/shared/interfaces';
|
|
import { initialPlaylistMetaState, PlaylistMetaState } from './playlists.state';
|
|
|
|
import { EpgProgram } from '@iptvnator/shared/interfaces';
|
|
|
|
export interface PlaylistState {
|
|
active: Channel | undefined;
|
|
activePlaybackUrl: string | null;
|
|
currentEpgProgram: EpgProgram | undefined;
|
|
epgAvailable: boolean;
|
|
channelsLoading: boolean;
|
|
channels: Channel[]; // TODO: use entity store
|
|
playlists: PlaylistMetaState;
|
|
}
|
|
|
|
export const initialState: PlaylistState = {
|
|
active: undefined,
|
|
activePlaybackUrl: null,
|
|
currentEpgProgram: undefined,
|
|
epgAvailable: false,
|
|
channelsLoading: false,
|
|
channels: [],
|
|
playlists: initialPlaylistMetaState,
|
|
};
|