workadventure/front/src/Stores/EmoteStore.ts

20 lines
458 B
TypeScript
Raw Normal View History

2021-09-10 16:57:21 +02:00
import { writable } from "svelte/store";
function createEmoteMenuStore() {
const { subscribe, set } = writable(false);
return {
subscribe,
openEmoteMenu() {
set(true);
},
closeEmoteMenu() {
set(false);
},
};
}
2021-09-13 19:16:47 +02:00
export const emoteMenuVisiblilityStore = writable(false);
2021-09-10 16:57:21 +02:00
export const emoteStore = writable<string | null>(null);
export const emoteMenuStore = createEmoteMenuStore();