mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
14 lines
390 B
TypeScript
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>(() => ({})),
|
|
);
|
|
});
|