17 lines
478 B
TypeScript
17 lines
478 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { createSelector } from 'reselect';
|
|
import type { StateType } from '../reducer.js';
|
|
import type { ChatFoldersState } from '../ducks/chatFolders.js';
|
|
|
|
export function getChatFoldersState(state: StateType): ChatFoldersState {
|
|
return state.chatFolders;
|
|
}
|
|
|
|
export const getCurrentChatFolders = createSelector(
|
|
getChatFoldersState,
|
|
state => {
|
|
return state.currentChatFolders;
|
|
}
|
|
);
|