- refactored to use multiple states

This commit is contained in:
brendanlaschke
2023-08-11 10:27:31 +02:00
parent b76f01d930
commit accfaafcfa
34 changed files with 486 additions and 419 deletions

View File

@ -0,0 +1,7 @@
import { ReactElement } from 'react';
import { atom } from 'recoil';
export const actionBarEntriesState = atom<ReactElement[]>({
key: 'actionBarEntriesState',
default: [],
});

View File

@ -0,0 +1,6 @@
import { atom } from 'recoil';
export const actionBarOpenState = atom<boolean>({
key: 'actionBarOpenState',
default: false,
});

View File

@ -0,0 +1,7 @@
import { ReactElement } from 'react';
import { atom } from 'recoil';
export const contextMenuEntriesState = atom<ReactElement[]>({
key: 'contextMenuEntriesState',
default: [],
});

View File

@ -0,0 +1,6 @@
import { atom } from 'recoil';
export const contextMenuOpenState = atom<boolean>({
key: 'contextMenuOpenState',
default: false,
});