Files
Mikhail DzianishchytsandGitHub c129ac3076 Edit max line length (#25071)
* 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
2024-06-29 18:17:26 +00:00

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];