Files
blitzkit/packages/website/src/stores/galleryEphemeral.ts
T
2024-10-24 17:53:47 -05:00

14 lines
390 B
TypeScript

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>(() => ({})),
);
});