mirror of
https://github.com/koel/koel
synced 2024-12-21 10:03:10 +00:00
20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
import { Ref, ref } from 'vue'
|
|
import { noop } from '@/utils'
|
|
|
|
import MessageToaster from '@/components/ui/MessageToaster.vue'
|
|
import DialogBox from '@/components/ui/DialogBox.vue'
|
|
|
|
export const MessageToasterStub: Ref<InstanceType<typeof MessageToaster>> = ref({
|
|
info: noop,
|
|
success: noop,
|
|
warning: noop,
|
|
error: noop
|
|
})
|
|
|
|
export const DialogBoxStub: Ref<InstanceType<typeof DialogBox>> = ref({
|
|
info: noop,
|
|
success: noop,
|
|
warning: noop,
|
|
error: noop,
|
|
confirm: noop
|
|
})
|