import React, {PropTypes} from 'react'; import CopyButton from './base/CopyButton'; const ResponseHeadersViewer = ({headers}) => { const headersString = headers.map( h => `${h.name}: ${h.value}` ).join('\n'); return (
{headers.map((h, i) => ( ))}
Name Value
{h.name} {h.value}

) }; ResponseHeadersViewer.propTypes = { headers: PropTypes.array.isRequired }; export default ResponseHeadersViewer;