(letter: string, act: () => void)
| 4376 | * soll keine Behauptung sein, sondern eine Eigenschaft der Verdrahtung. |
| 4377 | */ |
| 4378 | const menuAct = (letter: string, act: () => void) => () => { |
| 4379 | setWorkspace('explore'); |
| 4380 | activatedMenus.current = [...activatedMenus.current, letter]; |
| 4381 | act(); |
| 4382 | }; |
| 4383 | |
| 4384 | menuActionsRef.current = { |
| 4385 | a: menuAct('a', () => setGalaxyOn((current) => !current)), |