https://linear.app/comm/issue/ENG-10205/update-flow-to-02691
React.Element was removed in flow 0.245.0. According to docs: https://flow.org/en/docs/react/types/#toc-react-element it should be replaced with
React.MixedElement or React.Node.
But it looks like cloneElement still takes React.Element https://github.com/facebook/flow/blob/6712ab6ac50f820f66669b1d71a767fd340c919c/lib/react.js#L163
so I silenced the error.
Also MixedElement doesn't have props property and we still use it, so I silenced the error by converting to any. Accessing props property on children looks like a hack to me anyway.
Depends on D15036