2021-09-10 16:57:21 +02:00
|
|
|
import { writable } from "svelte/store";
|
|
|
|
|
2021-09-12 11:11:52 +02:00
|
|
|
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);
|
2021-09-12 11:11:52 +02:00
|
|
|
export const emoteMenuStore = createEmoteMenuStore();
|