mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-14 05:24:04 +00:00
8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
|
import { proxy, useSnapshot } from 'valtio';
|
||
|
|
||
|
const searchStore = proxy({ isFocused: false });
|
||
|
|
||
|
export const useSearchStore = () => useSnapshot(searchStore);
|
||
|
|
||
|
export const getSearchStore = () => searchStore;
|