Files
spacedrive/interface/app/$libraryId/Explorer/QuickPreview/store.ts
nikec 99ccb8f8c7 [ENG-972] quick view improvements (#1233)
* 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>
2023-09-08 11:45:37 +00:00

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;