mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: search
This commit is contained in:
1 parent
76016ae41f
commit
5866072aa7
6 files changed
+119
-30
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { create } from 'zustand';
|
||||
import { subscribeWithSelector } from 'zustand/middleware';
|
||||
import { createContextualStore } from '../core/zustand/createContextualStore';
|
||||
|
||||
interface GalleryEphemeral {
|
||||
searching: boolean;
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export const GalleryEphemeral = createContextualStore(() => {
|
||||
return create<GalleryEphemeral>()(
|
||||
subscribeWithSelector<GalleryEphemeral>(() => ({
|
||||
searching: false,
|
||||
})),
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user