Files
spacedrive/interface/app/$libraryId/Layout/Sidebar/store.ts
Vítor Vasconcellos 02c0d37514 Fix pnpm prep fails to download native-deps on some specific network env (#2275)
* Fix pnpm prep failing to download native-deps on some specific network configurations

* Eslint/Prettier auto-format
2024-04-04 14:19:49 +00:00

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;