12345678 |
- import { actionUploadFile } from './actionUploadFile';
- import { actionPromise } from '../reducers';
- export const actionUploadFiles =
- (files = []) =>
- async (dispatch, getState) => {
- dispatch(actionPromise('uploadFiles', Promise.all(files?.map((file) => dispatch(actionUploadFile(file))))));
- };
|