I have a component that I wish to accept another component as a prop, and render that. I wish for that passed component to be optional, and render nothing in that case.
Using the type of elementType will resolve your problem.
Component.propTypes = { Inner: PropTypes.elementType };
Since your prop is a react component thus we use elementType. If you ever open the source code for the prop-types you will find this there.
Hope so this is helpful to you.