Moved collapse button.

This commit is contained in:
Mike Cao committed 2025-03-22 01:31:51 -07:00
1 parent 5d2c1e27c2
commit adca3c36d0
7 files changed
+1883 -37

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { create } from 'zustand';
const store = create(() => ({}));
const useGlobalState = (key: string, value?: any) => {
if (value !== undefined && !store.getState()[key]) {
store.setState({ [key]: value });
}
return [store(state => state[key]), (value: any) => store.setState({ [key]: value })];
};
export default useGlobalState;