mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-05-19 11:43:10 +12:00
20 lines
509 B
TypeScript
20 lines
509 B
TypeScript
import type { Ref } from 'vue'
|
|
import { T_documentList } from 'app/interfaces/T_documentList'
|
|
|
|
import { v4 as uuidv4 } from 'uuid'
|
|
|
|
import { defineStore } from 'pinia'
|
|
import { ref } from 'vue'
|
|
|
|
export const S_DialogMarkdown = defineStore('S_DialogMarkdown', () => {
|
|
const documentToOpen: Ref<T_documentList> = ref('license')
|
|
|
|
const dialogUUID: Ref<string> = ref('')
|
|
|
|
function generateDialogUUID () {
|
|
dialogUUID.value = uuidv4()
|
|
}
|
|
|
|
return { documentToOpen, dialogUUID, generateDialogUUID }
|
|
})()
|