apkt-eis/src/stores/message.ts
Dede Fuji Abdul 275153649c first commit
2023-10-16 09:00:27 +07:00

24 lines
601 B
TypeScript

import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import { dispatchNotification } from '@/components/Notification'
import router from '@/router'
export const useMessageStore = defineStore('message_box', () => {
const message = ref('')
const isSending = ref(false)
const open = ref(false)
function handleOnDismissMessageBox() {
open.value = false;
}
function showDialogMessageBox() {
open.value = true;
}
function send() {
}
return { message, send, isSending, open, handleOnDismissMessageBox, showDialogMessageBox }
})