Files
Desktop/ts/state/selectors/toast.std.ts
Fedor Indutny 44076ece79 Rename files
2025-10-16 23:45:44 -07:00

12 lines
415 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { createSelector } from 'reselect';
import type { StateType } from '../reducer.preload.js';
import type { ToastStateType } from '../ducks/toast.preload.js';
export function getToastState(state: StateType): ToastStateType {
return state.toast;
}
export const getToast = createSelector(getToastState, ({ toast }) => toast);