mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
26 lines
688 B
TypeScript
26 lines
688 B
TypeScript
import { Ref, ref } from 'vue'
|
|
import { noop } from '@/utils'
|
|
|
|
import MessageToaster from '@/components/ui/message-toaster/MessageToaster.vue'
|
|
import DialogBox from '@/components/ui/DialogBox.vue'
|
|
import Overlay from '@/components/ui/Overlay.vue'
|
|
|
|
export const MessageToasterStub = ref({
|
|
info: noop,
|
|
success: noop,
|
|
warning: noop,
|
|
error: noop
|
|
}) as unknown as Ref<InstanceType<typeof MessageToaster>>
|
|
|
|
export const DialogBoxStub = ref({
|
|
info: noop,
|
|
success: noop,
|
|
warning: noop,
|
|
error: noop,
|
|
confirm: noop
|
|
}) as unknown as Ref<InstanceType<typeof DialogBox>>
|
|
|
|
export const OverlayStub = ref({
|
|
show: noop,
|
|
hide: noop
|
|
}) as unknown as Ref<InstanceType<typeof Overlay>>
|