2021-06-21 17:19:27 +02:00
|
|
|
import {derived} from "svelte/store";
|
2021-06-22 16:12:53 +02:00
|
|
|
import {consoleGlobalMessageManagerFocusStore} from "./ConsoleGlobalMessageManagerStore";
|
2021-06-21 17:19:27 +02:00
|
|
|
|
|
|
|
//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;
|
2021-06-21 17:19:27 +02:00
|
|
|
}
|
|
|
|
);
|