Files
warren/frontend/stores/viewers/image.ts
2025-09-06 01:21:13 +02:00

14 lines
275 B
TypeScript

export const useImageViewer = defineStore('image-viewer', {
state: () => ({
src: null as string | null,
}),
actions: {
open(src: string) {
this.src = src;
},
close() {
this.src = null;
},
},
});