mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
changed youtube appearance
This commit is contained in:
parent
4ab2c7f885
commit
8ff9fdd9bd
3 changed files with 22 additions and 16 deletions
|
@ -3,14 +3,21 @@ import { PLAYER_HANDLERS } from './handlers';
|
|||
import { PLAYER_STATES } from './constants';
|
||||
import { IFile } from '../types';
|
||||
|
||||
interface IYoutubeInfo {
|
||||
title: string;
|
||||
thumbnail: string;
|
||||
}
|
||||
|
||||
export type IPlayerState = Readonly<{
|
||||
status: typeof PLAYER_STATES[keyof typeof PLAYER_STATES];
|
||||
file: IFile;
|
||||
youtubes: Record<string, IYoutubeInfo>;
|
||||
}>;
|
||||
|
||||
const INITIAL_STATE: IPlayerState = {
|
||||
status: PLAYER_STATES.UNSET,
|
||||
file: null,
|
||||
youtubes: {},
|
||||
};
|
||||
|
||||
export default createReducer(INITIAL_STATE, PLAYER_HANDLERS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue