UNPKG

@playkit-js/playkit-js-ui

Version:

[![Build Status](https://github.com/kaltura/playkit-js-ui/actions/workflows/run_canary_full_flow.yaml/badge.svg)](https://github.com/kaltura/playkit-js-ui/actions/workflows/run_canary_full_flow.yaml) [![code style: prettier](https://img.shields.io/badge/c

31 lines (25 loc) 772 B
/* eslint-disable @typescript-eslint/explicit-function-return-type */ import {PlaylistState} from '../types/reducers/playlist'; export const types = { UPDATE_PLAYLIST_COUNTDOWN_CANCELED: 'playlist-countdown/UPDATE_PLAYLIST_COUNTDOWN_CANCELED' }; export const initialState = { countdownCanceled: false }; export default (state: PlaylistState = initialState, action: any) => { switch (action.type) { case types.UPDATE_PLAYLIST_COUNTDOWN_CANCELED: return { ...state, countdownCanceled: action.countdownCanceled }; default: return state; } }; export const actions = { updatePlaylistCountdownCanceled: (countdownCanceled: boolean) => ({ type: types.UPDATE_PLAYLIST_COUNTDOWN_CANCELED, countdownCanceled }) };