feat: search

This commit is contained in:
TrèsAbhi committed 2024-10-24 17:32:46 -05:00
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,
})),
);
});