import React , { ComponentPropsWithRef , ReactNode } from 'react' ; interface Props { imageProps ? : ComponentPropsWithRef < 'img' > ; children : ReactNode ; } const EmptyViewContainer = ( { imageProps , children } ) => { return ( < div className = "mauto p1" > < figure className = "flex-item-fluid text-center p3" > { imageProps && < img className = "hauto" { ... imageProps } alt = { imageProps . alt || '' } / > } < figcaption className = "mt2" > { children } < /figcaption> < /figure> < /div>); } ; export default EmptyViewContainer ;