text: import {
    SHOW_IMPORT_PANEL,
    SELECT_PLAYLIST,
    SHOW_SEARCH_RESULTS,
  } from '../constants/ActionTypes';
  
  const initialState = { showResults: false };
  
  export default function reduce(state = initialState, action = {}) {
    const { type } = action;
    switch (type) {
      case SHOW_SEARCH_RESULTS:
        return { showResults: true };
      case SELECT_PLAYLIST:
      case SHOW_IMPORT_PANEL:
        return { showResults: false };
      default:
        return state;
    }
  }
  