mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 23:16:59 +01:00
19 lines
477 B
TypeScript
19 lines
477 B
TypeScript
import type { HttpResponse } from '@yaakapp/api';
|
|
import { KeyValueRow, KeyValueRows } from './core/KeyValueRow';
|
|
|
|
interface Props {
|
|
response: HttpResponse;
|
|
}
|
|
|
|
export function ResponseHeaders({ response }: Props) {
|
|
return (
|
|
<div className="overflow-auto h-full pb-4">
|
|
<KeyValueRows>
|
|
{response.headers.map((h, i) => (
|
|
<KeyValueRow labelColor="primary" key={i} label={h.name} value={h.value} />
|
|
))}
|
|
</KeyValueRows>
|
|
</div>
|
|
);
|
|
}
|