import { defineStore } from "pinia"; import { ref } from "vue"; import type { Information } from "@/modules/05_placement/components/PersonalDetail/profileType"; export const usePersonalDataStore = defineStore("personal-detail", () => { const dataMain = ref([]) const loading = ref(false) function fecthDataInformation(data: Information) { dataMain.value = data dataMain.value.length !== 0 ? loading.value = true : loading.value = false } return { fecthDataInformation, dataMain, loading, }; })