import * as TableActions from './TableActions' ; import { ActionCreator } from 'redux' ; import ThemeInfo from '../../model/ThemeInfo' ; const showLogo = ( ) => ( { type : TableActions . TableActionTypes . ShowLogo } ) ; const showGameThemes = ( gameThemes ) => ( { type : TableActions . TableActionTypes . ShowGameThemes , gameThemes } ) ; const showRoundThemes = ( roundThemes , isFinal , display ) => ( { type : TableActions . TableActionTypes . ShowRoundThemes , roundThemes , isFinal , display } ) ; const showText = ( text , animateReading ) => ( { type : TableActions . TableActionTypes . ShowText , text , animateReading } ) ; const showAnswer = ( text ) => ( { type : TableActions . TableActionTypes . ShowAnswer , text } ) ; const showRoundTable = ( ) => ( { type : TableActions . TableActionTypes . ShowRoundTable } ) ; const blinkQuestion = ( themeIndex , questionIndex ) => ( { type : TableActions . TableActionTypes . BlinkQuestion , themeIndex , questionIndex } ) ; const blinkTheme = ( themeIndex ) => ( { type : TableActions . TableActionTypes . BlinkTheme , themeIndex } ) ; const removeQuestion = ( themeIndex , questionIndex ) => ( { type : TableActions . TableActionTypes . RemoveQuestion , themeIndex , questionIndex } ) ; const removeTheme = ( themeIndex ) => ( { type : TableActions . TableActionTypes . RemoveTheme , themeIndex } ) ; const showPartialText = ( textShape ) => ( { type : TableActions . TableActionTypes . ShowPartialText , textShape } ) ; const appendPartialText = ( text ) => ( { type : TableActions . TableActionTypes . AppendPartialText , text } ) ; const showImage = ( uri ) => ( { type : TableActions . TableActionTypes . ShowImage , uri } ) ; const showAudio = ( uri ) => ( { type : TableActions . TableActionTypes . ShowAudio , uri } ) ; const showVideo = ( uri ) => ( { type : TableActions . TableActionTypes . ShowVideo , uri } ) ; const showSpecial = ( text , activeThemeIndex = - 1 ) => ( { type : TableActions . TableActionTypes . ShowSpecial , text , activeThemeIndex } ) ; const canPressChanged = ( canPress ) => ( { type : TableActions . TableActionTypes . CanPressChanged , canPress } ) ; const isSelectableChanged = ( isSelectable ) => ( { type : TableActions . TableActionTypes . IsSelectableChanged , isSelectable } ) ; const resumeMedia = ( ) => ( { type : TableActions . TableActionTypes . ResumeMedia } ) ; const captionChanged = ( caption ) => ( { type : TableActions . TableActionTypes . CaptionChanged , caption } ) ; const tableActionCreators = { showLogo , showGameThemes , showRoundThemes , showText , showAnswer , showRoundTable , blinkQuestion , blinkTheme , removeQuestion , removeTheme , showPartialText , appendPartialText , showImage , showAudio , showVideo , showSpecial , canPressChanged , isSelectableChanged , resumeMedia , captionChanged } ; export default tableActionCreators ;