import { Action , QuizReaction } from '../reducers/quiz' ; export const setRememberSkipped = ( payload ) : Action => ( { payload , type : 'remember skipped' , } ) ; export const answerCorrectly = ( path ) : Action => ( { path , type : 'answer correctly' , } ) ; export const addAnswer = ( path , answer ) : Action => ( { path , payload : answer , type : 'add answer' , } ) ; export const skip = ( path ) : Action => ( { type : 'skip' , path } ) ; export const setReaction = ( path , payload ) : Action => ( { path , payload , type : 'set reaction' , } ) ;