2025-08-25 18:02:05 -07:00
|
|
|
// Copyright 2025 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import { createSelector } from 'reselect';
|
2025-09-16 17:39:03 -07:00
|
|
|
import type { StateType } from '../reducer.js';
|
|
|
|
import type { ChatFoldersState } from '../ducks/chatFolders.js';
|
2025-08-25 18:02:05 -07:00
|
|
|
|
|
|
|
export function getChatFoldersState(state: StateType): ChatFoldersState {
|
|
|
|
return state.chatFolders;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getCurrentChatFolders = createSelector(
|
|
|
|
getChatFoldersState,
|
|
|
|
state => {
|
|
|
|
return state.currentChatFolders;
|
|
|
|
}
|
|
|
|
);
|