Files
warren/frontend/stores/viewers/image.ts
2025-09-06 18:00:19 +02:00

14 lines
260 B
TypeScript

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