Page media in Lightbox
This commit is contained in:
parent
03697f66e7
commit
5dff1768bd
16 changed files with 603 additions and 395 deletions
|
@ -40,3 +40,13 @@ export const getMedia = createSelector(
|
|||
(state): ReadonlyArray<ReadonlyDeep<MediaItemType>> =>
|
||||
state.isShowingLightbox ? state.media : []
|
||||
);
|
||||
|
||||
export const getHasPrevMessage = createSelector(
|
||||
getLightboxState,
|
||||
(state): boolean => state.isShowingLightbox && state.hasPrevMessage
|
||||
);
|
||||
|
||||
export const getHasNextMessage = createSelector(
|
||||
getLightboxState,
|
||||
(state): boolean => state.isShowingLightbox && state.hasNextMessage
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue