mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
* Edit max line length * oh god * ts also * rebuild tgui * Format again after conflicts resolving * Me rebuild tgui * this is minified * this is removed * rebuild tgui
16 lines
435 B
JavaScript
16 lines
435 B
JavaScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
import { map } from 'common/collections';
|
|
|
|
export const selectChat = (state) => state.chat;
|
|
|
|
export const selectChatPages = (state) => map((id) => state.chat.pageById[id])(state.chat.pages);
|
|
|
|
export const selectCurrentChatPage = (state) => state.chat.pageById[state.chat.currentPageId];
|
|
|
|
export const selectChatPageById = (id) => (state) => state.chat.pageById[id];
|