mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
17 lines
413 B
TypeScript
17 lines
413 B
TypeScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
export const selectChat = (state) => state.chat;
|
|
|
|
export const selectChatPages = (state) =>
|
|
state.chat.pages.map((id: string) => state.chat.pageById[id]);
|
|
|
|
export const selectCurrentChatPage = (state) =>
|
|
state.chat.pageById[state.chat.currentPageId];
|
|
|
|
export const selectChatPageById = (id: string) => (state) =>
|
|
state.chat.pageById[id];
|