// @ts-nocheck
import {connect} from 'react-redux';
import {
  submitMedia,
  deleteMedia,
} from '@/store/media/media.actions';

export const mapDispatchToProps = (dispatch) => ({
  requestSubmitMedia: (form, config) => dispatch(submitMedia({ form, config })),
  requestDeleteMedia: (ids) => dispatch(deleteMedia({ ids })),
});

export const withMediaActions = connect(null, mapDispatchToProps);