File: //home/arjun/projects/buyercall/node_modules/vue-toast-notification/src/js/helpers.js
import {h, render} from 'vue';
export function removeElement(el) {
if (typeof el.remove !== 'undefined') {
el.remove()
} else {
el.parentNode?.removeChild(el)
}
}
export function createComponent(component, props, parentContainer, slots = {}) {
const vNode = h(component, props, slots)
const container = document.createElement('div');
container.classList.add('v-toast--pending')
parentContainer.appendChild(container);
render(vNode, container);
return vNode.component
}