import { shell } from '@tauri-apps/api'; import type { HttpResponse } from '../lib/models'; import { IconButton } from './core/IconButton'; import { KeyValueRow, KeyValueRows } from './core/KeyValueRow'; import { Separator } from './core/Separator'; interface Props { response: HttpResponse; } export function ResponseHeaders({ response }: Props) { return (
{response.headers.map((h, i) => ( ))} Other Info URL shell.open(response.url)} title="Open in browser" />
} value={
{response.url}
} /> ); }