5180 fichiers 38.5 Mo 0 téléchargements 127 vues mis à jour il y a 4 heures ui
nitro-v36-with-renderer-v36 / src / state / userChatPreferences.ts
userChatPreferences.ts 612 o Télécharger le fichier
import { createOctaneStore } from './createOctaneStore';

/** The user's own chat preferences, saved on the server (UserSettings / SetChatPreferences). */
interface UserChatPreferencesState {
    chatMode: number;
    bubbleWidth: number;
    scrollSpeed: number;
    setPreferences: (preferences: Partial<Pick<UserChatPreferencesState, 'chatMode' | 'bubbleWidth' | 'scrollSpeed'>>) => void;
}

export const useUserChatPreferencesStore = createOctaneStore<UserChatPreferencesState>()((set) => ({
    chatMode: 0,
    bubbleWidth: 1,
    scrollSpeed: 1,
    setPreferences: (preferences) => set(preferences)
}));
15Sujets
1Dépôts
20Membres
7En 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