mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 05:33:27 +00:00
* Add bg color to layout * Add tool options, search state * support double click nav from search * useTopBarOptions * search store * disable nav button * search * Update View.tsx * rename hook --------- Co-authored-by: Jamie Pine <ijamespine@me.com> Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com>
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;
|