import { ref } from 'vue' import { defineStore } from 'pinia' import type { EhrFile } from '@/stores/tree-data' export const useSearchDataStore = defineStore('searched', () => { const foundFile = ref([]) const isSearch = ref(false) async function getFoundFile(data: EhrFile[]) { foundFile.value = data } return { isSearch, foundFile, getFoundFile, } })