import {
    UPLOAD_MEDIA_REQUEST,
    UPLOAD_MEDIA_FAILURE,
    UPLOAD_MEDIA_SUCCESS,
    UPLOAD_MEDIA_PRES_REQUEST,
    UPLOAD_MEDIA_PRES_FAILURE,
    UPLOAD_MEDIA_PRES_SUCCESS,
  
  } from "../types";
  
  export const uploadMedia = payload => ({
    type: UPLOAD_MEDIA_REQUEST,
    payload
  });
  
  export const uploadMediaFailure = errors => ({
    type: UPLOAD_MEDIA_FAILURE,
    errors
  });
  
  export const uploadMediaSuccess = res => ({
    type: UPLOAD_MEDIA_SUCCESS,
    res
  });

  export const uploadMediaPres = payload => ({
    type: UPLOAD_MEDIA_PRES_REQUEST,
    payload
  });
  
  export const uploadMediaPresFailure = errors => ({
    type: UPLOAD_MEDIA_PRES_FAILURE,
    errors
  });
  
  export const uploadMediaPresSuccess = res => ({
    type: UPLOAD_MEDIA_PRES_SUCCESS,
    res
  });


  

