text: import {handleActions} from 'redux-actions';
  import {getActionOptions} from '../../utils/reduxactions';
  import {actionTypes, ACTION_PREFIX} from './constants';
  
  /**
   | ---------------------------------------------------------------------
   | REDUCER  
   | ---------------------------------------------------------------------
   */
  const initialState = {
    genre: '',
  };
  
  // reducer
  
  const reducer = handleActions(
    {
      [actionTypes.SET_GENRE]: (state, {payload}) => ({
        ...state,
        genre: payload,
      }),
    },
    initialState,
    getActionOptions(ACTION_PREFIX),
  );
  
  export default reducer;
  