partey_workadventure/front/src/Stores/UserInputStore.ts

10 lines
394 B
TypeScript
Raw Normal View History

import {derived} from "svelte/store";
2021-06-22 16:12:53 +02:00
import {consoleGlobalMessageManagerFocusStore} from "./ConsoleGlobalMessageManagerStore";
//derived from the focus on Menu, ConsoleGlobal, Chat and ...
export const enableUserInputsStore = derived(
2021-06-22 16:12:53 +02:00
consoleGlobalMessageManagerFocusStore,
($consoleGlobalMessageManagerFocusStore) => {
return !$consoleGlobalMessageManagerFocusStore;
}
);