text: import { stateInflight, stateError, stateSuccess } from '#utils/reducer-utils';
  const initialState = {
    fetching: false,
    fetched: false,
    receivedAt: null,
    data: {}
  };
  
  export default function regions (state = initialState, action) {
    switch (action.type) {
      case 'GET_REGIONS_INFLIGHT':
        state = stateInflight(state, action);
        break;
      case 'GET_REGIONS_FAILED':
        state = stateError(state, action);
        break;
      case 'GET_REGIONS_SUCCESS':
        state = stateSuccess(state, action);
        break;
    }
    return state;
  }