title: React Antd Modal Property 'children' does not exist on type 'IntrinsicAttributes & ModalProps'
body: <p>After upgrading to React 18 I have the following issue with Antd.</p>
  <p>When using a component from Antd (Modal, Dialog, ...) it gives me this error:</p>
  <pre><code>TS2322: Type '{ children: ReactNode; ref: ForwardedRef&lt;unknown&gt;; className: string; visible: true; onCancel: (() =&gt; void) | undefined; onOk: undefined; footer: null; closable: false; }' is not assignable to type 'IntrinsicAttributes &amp; ModalProps'.   Property 'children' does not exist on type 'IntrinsicAttributes &amp; ModalProps'.
  </code></pre>
  <p>Here is my component:</p>
  <pre><code>function TransitionsModal(props: Props): JSX.Element {
    const {
      open,
      onClose,
      children
    } = props;
  
    return (
      &lt;div&gt;
        {open &amp;&amp;
          &lt;Modal
            className=&quot;flex items-center justify-center&quot;
            visible={open}
            onCancel={onClose}
            onOk={undefined}
            footer={null}
            closable={false}&gt;
            {children}
          &lt;/Modal&gt;
        }
      &lt;/div&gt;
  
    );
  }
  </code></pre>
  <p>And here my Props:</p>
  <pre><code>type Props = {
    children: React.ReactNode,
    open: boolean,
    onClose?: () =&gt; void
  }
  </code></pre>
  <p>I use node 17.8.0</p>