mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-28 10:28:09 -04:00
* quick preview improvements * fix ts * improvements * fix merge * non-indexed support * Update index.tsx * Update pnpm-lock.yaml * update quick preview * sidebar icon weight * fix thumb * ts * fix focus * remove usePortal * quick preview store * Update index.tsx * Update index.tsx * cleanup * add tooltip to name * hide nav buttons and match explorer nav buttons --------- Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com>
10 lines
212 B
TypeScript
10 lines
212 B
TypeScript
import { proxy, useSnapshot } from 'valtio';
|
|
|
|
const store = proxy({
|
|
open: false,
|
|
itemIndex: 0
|
|
});
|
|
|
|
export const useQuickPreviewStore = () => useSnapshot(store);
|
|
export const getQuickPreviewStore = () => store;
|