workadventure/front/src/Stores/EmoteStore.ts
2021-10-04 14:43:19 +02:00

19 lines
400 B
TypeScript

import { writable } from "svelte/store";
function createEmoteMenuStore() {
const { subscribe, set } = writable(false);
return {
subscribe,
openEmoteMenu() {
set(true);
},
closeEmoteMenu() {
set(false);
},
};
}
export const emoteStore = writable<string | null>(null);
export const emoteMenuStore = createEmoteMenuStore();