10 lines
395 B
TypeScript
10 lines
395 B
TypeScript
|
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;
|
||
|
}
|
||
|
);
|