mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
21 lines
518 B
TypeScript
21 lines
518 B
TypeScript
import type { HttpResponse } from '@yaakapp-internal/models';
|
|
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}>
|
|
{h.value}
|
|
</KeyValueRow>
|
|
))}
|
|
</KeyValueRows>
|
|
</div>
|
|
);
|
|
}
|