5180 fichiers 38.5 Mo 0 téléchargements 265 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / hooks / mentions / useMentionsSnapshot.ts
useMentionsSnapshot.ts 701 o Télécharger le fichier
import { IMentionEntry } from '../../api/mentions';
import { MentionsStatus, useMentionsStore } from './mentionsStore';

export const useMentionsSnapshot = (): { mentions: ReadonlyArray<IMentionEntry>; unreadCount: number; status: MentionsStatus; hasMore: boolean; loadingMore: boolean } => {
    const mentions = useMentionsStore((state) => state.mentions);
    const unreadCount = useMentionsStore((state) => state.unreadCount);
    const status = useMentionsStore((state) => state.status);
    const hasMore = useMentionsStore((state) => state.hasMore);
    const loadingMore = useMentionsStore((state) => state.loadingMore);

    return { mentions, unreadCount, status, hasMore, loadingMore };
};
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser