mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: upgrade Gallery
This commit is contained in:
1 parent
96482d4268
commit
d33990bdb4
5 files changed
+37
-47
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { Varuna } from "varuna";
|
||||
|
||||
interface Gallery {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export const Gallery = new Varuna<Gallery>({});
|
||||
@@ -1,13 +0,0 @@
|
||||
import { create } from 'zustand';
|
||||
import { subscribeWithSelector } from 'zustand/middleware';
|
||||
import { createContextualStore } from '../core/zustand/createContextualStore';
|
||||
|
||||
interface GalleryEphemeral {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export const GalleryEphemeral = createContextualStore(() => {
|
||||
return create<GalleryEphemeral>()(
|
||||
subscribeWithSelector<GalleryEphemeral>(() => ({})),
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user