mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-04 05:43:52 +01:00
28 lines
705 B
JavaScript
28 lines
705 B
JavaScript
import React from 'react';
|
|
import StyledWrapper from './StyledWrapper';
|
|
|
|
const ResponseHeaders = ({headers}) => {
|
|
return (
|
|
<StyledWrapper className="mt-3 px-3 pb-4 w-full">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Value</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{headers && headers.length ? headers.map((header, index) => {
|
|
return (
|
|
<tr key={index}>
|
|
<td className="key">{header[0]}</td>
|
|
<td className="value">{header[1]}</td>
|
|
</tr>
|
|
);
|
|
}) : null}
|
|
</tbody>
|
|
</table>
|
|
</StyledWrapper>
|
|
)
|
|
};
|
|
export default ResponseHeaders; |