UnisKB/ui/src/stores/index.ts

15 lines
367 B
TypeScript
Raw Normal View History

2023-10-19 10:18:45 +00:00
import { createPinia } from 'pinia'
const store = createPinia()
export { store }
import useUserStore from './modules/user'
2023-11-02 01:56:14 +00:00
import useDatasetStore from './modules/dataset'
2023-11-14 10:12:55 +00:00
import useParagraphStore from './modules/paragraph'
2023-09-15 09:40:35 +00:00
2023-10-19 10:18:45 +00:00
const useStore = () => ({
2023-11-02 01:56:14 +00:00
user: useUserStore(),
2023-11-14 10:12:55 +00:00
dataset: useDatasetStore(),
paragraph: useParagraphStore(),
2023-10-19 10:18:45 +00:00
})
2023-09-15 09:40:35 +00:00
2023-10-19 10:18:45 +00:00
export default useStore