text: import { createAction } from 'redux-actions';
  import {
    FETCH_API_DATA_REQUEST,
    FETCH_API_DATA_SUCCESS,
    FETCH_API_DATA_FAILED
  } from '../constants';
  
  const fetchApiDataRequest = createAction(
    FETCH_API_DATA_REQUEST
  );
  
  const fetchApiDataSuccess = createAction(
    FETCH_API_DATA_SUCCESS,
    ( status, data ) => ({ status, data })
  );
  
  const fetchApiDataFailed = createAction(
    FETCH_API_DATA_FAILED,
    ( status, message ) => ({ status, message })
  );
  
  export {
    fetchApiDataRequest,
    fetchApiDataSuccess,
    fetchApiDataFailed
  };
  