Up to date CRA Started by Patrick Fic
This commit is contained in:
13
src/redux/application/application.selectors.js
Normal file
13
src/redux/application/application.selectors.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createSelector } from "reselect";
|
||||
|
||||
const selectApplication = (state) => state.application;
|
||||
|
||||
export const selectRooms = createSelector(
|
||||
[selectApplication],
|
||||
(application) => application.rooms
|
||||
);
|
||||
|
||||
export const selectImages = createSelector(
|
||||
[selectApplication],
|
||||
(application) => application.images
|
||||
);
|
||||
Reference in New Issue
Block a user