import { createPinia } from 'pinia';
import useAppStore from './modules/app';
import useDictStore from './modules/dict';
import usePermissionStore from './modules/permission';
import useSettingsStore from './modules/settings';
import useTagsViewStore from './modules/tagsView';
import useUserStore from './modules/user';
import piniaPluginPersist from 'pinia-plugin-persist'

const store = createPinia()
store.use(piniaPluginPersist)

export { store, useAppStore, useDictStore, usePermissionStore, useSettingsStore, useTagsViewStore, useUserStore }

export { useLocalStore } from './modules/local'
export { useSessionStore } from './modules/session'
export { useCacheStore } from './modules/cache'