Refactor scene management with store

This commit is contained in:
Dennis Schoepf 2021-07-18 14:41:53 +02:00
parent f9079e4823
commit 871b4116ff
10 changed files with 69 additions and 59 deletions

12
src/store.ts Normal file
View file

@ -0,0 +1,12 @@
import create from 'zustand/vanilla';
import { Scenes } from './scenes/scenes';
export interface State {
currentScene: Scenes;
}
const store = create<State>(() => ({
currentScene: Scenes.OVERVIEW,
}));
export default store;