Files
blitzkit/packages/website/src/stores/galleryEphemeral.ts
T

13 lines
390 B
TypeScript
Raw Normal View History

2024-10-24 17:32:46 -05:00
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>()(
2024-10-24 17:53:47 -05:00
subscribeWithSelector<GalleryEphemeral>(() => ({})),
2024-10-24 17:32:46 -05:00
);
});