import React from 'react' ; interface Props { [ name ] : string ; } export default function Info ( info ) { return ( < code style = { { display : 'grid' , gridTemplateColumns : 'auto 1fr' , gridGap : '0 5px' , whiteSpace : 'pre-wrap' } } > { Object . keys ( info ) . map ( ( k ) => ( < React . Fragment key = { k } > < div > { k } : < /div> < div > { info [ k ] } < /div> < /React.Fragment>))} < /code>); }