import { o as isObject } from './server.mjs';
import { useToast as useToast$1 } from 'bootstrap-vue-next';

function useToast() {
  const toast = useToast$1();
  return {
    hide(el) {
      toast.hide(el);
    },
    show(el, options) {
      if (isObject(el)) {
        el.pos = el.pos || "top-center";
        return toast.show(el);
      }
      if (options) {
        options.pos = options.pos || "top-center";
      }
      return toast.show(el, options);
    }
  };
}

export { useToast as u };
//# sourceMappingURL=toast-YYpe1XMm.mjs.map
