wishlists-selectors.js
23 lines
| 1 | const selectWishlists = ( state ) => state.wishlists.wishlists; |
| 2 | |
| 3 | const selectWishlistById = ( state, id ) => state.wishlists.wishlists[ id ]; |
| 4 | |
| 5 | const selectWishlistsLoading = ( state ) => state.wishlists.loading; |
| 6 | |
| 7 | const selectWishlistsError = ( state ) => state.wishlists.error; |
| 8 | |
| 9 | const selectWishlistsCreation = ( state ) => state.wishlists.creation; |
| 10 | |
| 11 | const selectWishlistsCreationLoading = ( state ) => state.wishlists.creation.loading; |
| 12 | |
| 13 | const selectWishlistsCreationError = ( state ) => state.wishlists.creation.error; |
| 14 | |
| 15 | export { |
| 16 | selectWishlists, |
| 17 | selectWishlistById, |
| 18 | selectWishlistsLoading, |
| 19 | selectWishlistsError, |
| 20 | selectWishlistsCreation, |
| 21 | selectWishlistsCreationLoading, |
| 22 | selectWishlistsCreationError, |
| 23 | } |