mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
12 lines
417 B
TypeScript
12 lines
417 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
import { createSelector } from 'reselect';
|
|
import type { StateType } from '../reducer.preload.js';
|
|
import type { GifsStateType } from '../ducks/gifs.preload.js';
|
|
|
|
export const selectGifs = (state: StateType): GifsStateType => state.gifs;
|
|
|
|
export const getRecentGifs = createSelector(selectGifs, gifs => {
|
|
return gifs.recentGifs;
|
|
});
|