PropTypes are deprecated since React 16 and completely unsupported in React 19, they probably shouldn't be in our generated code.