import { defineStore } from "pinia";
import { ref } from "vue";

export const useDefineStore = defineStore("useDefineStore", ()=>{
    let formData=ref ({
        name: "",
        creditCode: "",
        licensePath: "",
        location:"",
        humanResourcesLicensePath: ""
    })
        function setFormDataKey(key, data) {
            this.formData[key] = data;
        }
        return {
            formData,
            setFormDataKey
        }
});
