export const useCopyStore = defineStore('file-copy', { state: () => ({ file: null as { warrenId: string; path: string; name: string } | null, }), actions: { copyFile(warrenId: string, filePath: string, fileName: string) { this.file = { warrenId, path: filePath, name: fileName, }; }, /** Removes the current file from the "clipboard" */ clearFile() { this.file = null; }, }, });