mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-22 23:48:26 -04:00
* Fix pnpm prep failing to download native-deps on some specific network configurations * Eslint/Prettier auto-format
12 lines
308 B
TypeScript
12 lines
308 B
TypeScript
import { proxy, useSnapshot } from 'valtio';
|
|
|
|
//This store is being used
|
|
//to record the state of the sidebar for specific behaviours i.e pinning
|
|
|
|
const store = proxy({
|
|
pinJobManager: false as boolean
|
|
});
|
|
|
|
export const useSidebarStore = () => useSnapshot(store);
|
|
export const getSidebarStore = () => store;
|