mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-19 15:59:12 +00:00
12 lines
406 B
TypeScript
12 lines
406 B
TypeScript
|
import { proxy, useSnapshot } from 'valtio';
|
||
|
|
||
|
const showControlsStore = proxy({
|
||
|
isEnabled: location.search.includes('showControls') || localStorage.getItem('showControls'),
|
||
|
transparentBg:
|
||
|
location.search.includes('transparentBg') || localStorage.getItem('transparentBg')
|
||
|
});
|
||
|
|
||
|
export const useShowControls = () => useSnapshot(showControlsStore);
|
||
|
|
||
|
export const getShowControls = () => showControlsStore;
|