refactor(client-side): create pinia store for autosave information

This commit is contained in:
parent 8bda275244
commit 00d4467b87
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

13
stores/autosaveStore.ts Normal file

@ -0,0 +1,13 @@
import { defineStore } from "pinia";
export interface autoSavePayload {
draftId?: number;
}
export const useAutoSaveStore = defineStore("autosave", {
state() {
return {
draftId: undefined,
} as autoSavePayload;
},
});