import React from "react"; import type { EL } from "../node/el"; import * as std from "../law/std"; import { DOCXLaw } from "./rules/law"; import { renderDocxAsync as innerRenderDocxAsync } from "./common/docx/file"; import type { DOCXOptions } from "./common/docx/component"; import { DOCXAnyELs } from "./rules/any"; import loadEL from "../node/el/loadEL"; import type { JsonEL } from "../node/el/jsonEL"; export const renderDocxAsync = (elOrJsonEL: JsonEL | EL, docxOptions?: DOCXOptions): Promise => { const el = loadEL(elOrJsonEL); const element = std.isLaw(el) ? : ; return innerRenderDocxAsync(element, docxOptions); }; export default renderDocxAsync;