import React from "react"; import * as std from "../../law/std"; import { assertNever } from "../../util"; import type { HTMLComponentProps } from "../common/html"; import { elProps, wrapHTMLComponent } from "../common/html"; import { DOCXColumnsOrSentencesRun, HTMLColumnsOrSentencesRun } from "./columnsOrSentencesRun"; import type { DOCXComponentProps } from "../common/docx/component"; import { wrapDOCXComponent } from "../common/docx/component"; import { w } from "../common/docx/tags"; import { DOCXAnyELs, HTMLAnyELs } from "./any"; import { withKey } from "../common"; export interface AmendProvisionProps { el: std.AmendProvision, indent: number, } export const HTMLAmendProvisionCSS = /*css*/` .amend-provision-main { text-indent: 1em; } `; export const HTMLAmendProvision = wrapHTMLComponent("HTMLAmendProvision", ((props: HTMLComponentProps & AmendProvisionProps) => { const { el, htmlOptions, indent } = props; const blocks: React.JSX.Element[] = []; for (const child of el.children) { if (std.isAmendProvisionSentence(child)) { blocks.push((