mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01: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;
|
|
});
|