improve viewer exports

This commit is contained in:
2025-09-06 18:00:19 +02:00
parent 2b29716fee
commit 1c4aaa7040
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
export const useImageViewer = defineStore('image-viewer', { export default defineStore('image-viewer', {
state: () => ({ state: () => ({
src: null as string | null, src: null as string | null,
}), }),

View File

@@ -1,4 +1,4 @@
import { useImageViewer } from './image'; import useImageViewer from './image';
import { useTextEditor } from './text'; import useTextEditor from './text';
export { useImageViewer, useTextEditor }; export { useImageViewer, useTextEditor };

View File

@@ -1,7 +1,7 @@
import { uploadToWarren } from '~/lib/api/warrens'; import { uploadToWarren } from '~/lib/api/warrens';
import type { DirectoryEntry } from '~/shared/types'; import type { DirectoryEntry } from '~/shared/types';
export const useTextEditor = defineStore('text-editor', { export default defineStore('text-editor', {
state: () => ({ state: () => ({
data: null as { data: null as {
warrenId: string; warrenId: string;