import { Reducer } from 'redux' ; import { SET_DEFAULT_ABILITY } from '../actions' ; const reducer = ( prev = null , action ) : string | null => { if ( action . type === SET_DEFAULT_ABILITY ) { return action . payload ; } return prev ; } ; export default reducer ;