import { createVNode as r } from "vue";
import { omit as o } from "lodash-unified";
import { ApModal as t } from "../../../ap-modal/index.mjs";
import { ApFilePreview as l } from "../index.mjs";
const d = (e) => {
  t.createModal({
    title: e?.fileName ?? "File Preview",
    width: "90%",
    wrapperOffset: !0,
    wrapperFullHeight: !0,
    zIndex: 1e4,
    footer: null,
    content: r(l, o(e, "modalProps"), null),
    ...e?.modalProps
  });
};
export {
  d as createFilePreviewModal
};
