mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 06:43:29 +00:00
* locations dnd * fix icon * reduce navigate timeout * fix types * another * fix drag overlay count * Update pnpm-lock.yaml * merge * ephemeral support and other improvements * merge * Tag dnd * merge * type * merge * remove offset * update dnd logic to not depend on drag source * handle allowed types if parent isn't available * saved searches dnd navigation * well * rendering * Update pnpm-lock.yaml * types * remove width * Temporary solution * merge * @dnd-kit/utilities * Update pnpm-lock.yaml * explorer path dnd * remove unused drag hook * fix dnd on LayeredFileIcon --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
19 lines
439 B
TypeScript
19 lines
439 B
TypeScript
import { useSnapshot } from 'valtio';
|
|
import { valtioPersist } from '@sd/client';
|
|
|
|
export const dismissibleNoticeStore = valtioPersist('dismissible-notice', {
|
|
mediaView: false,
|
|
gridView: false,
|
|
listView: false,
|
|
ephemeral: false,
|
|
ephemeralMoveFiles: false
|
|
});
|
|
|
|
export function useDismissibleNoticeStore() {
|
|
return useSnapshot(dismissibleNoticeStore);
|
|
}
|
|
|
|
export function getDismissibleNoticeStore() {
|
|
return dismissibleNoticeStore;
|
|
}
|