partey_workadventure/front/src/Stores/UserInputStore.ts

10 lines
395 B
TypeScript
Raw Normal View History

import {derived} from "svelte/store";
import {ConsoleGlobalMessageManagerFocusStore,} from "./ConsoleGlobalMessageManagerStore";
//derived from the focus on Menu, ConsoleGlobal, Chat and ...
export const enableUserInputsStore = derived(
ConsoleGlobalMessageManagerFocusStore,
($ConsoleGlobalMessageManagerFocusStore) => {
return !$ConsoleGlobalMessageManagerFocusStore;
}
);