Added photos reducer.

This commit is contained in:
Patrick Fic
2020-11-12 15:47:47 -08:00
parent e2e6f0b510
commit e31f621a8f
12 changed files with 192 additions and 78 deletions

View File

@@ -0,0 +1,16 @@
import { createSelector } from "reselect";
const selectPhotosState = (state) => state.photos;
export const selectPhotos = createSelector(
[selectPhotosState],
(photos) => photos.photos
);
export const selectUploadInProgress = createSelector(
[selectPhotosState],
(photos) => photos.uploadInProgress
);
export const selectUploadError = createSelector(
[selectPhotosState],
(photos) => photos.uploadError
);