import { shell } from '@tauri-apps/api'; import classNames from 'classnames'; import type { ReactNode } from 'react'; import type { HttpResponse } from '../lib/models'; import { IconButton } from './core/IconButton'; import { Separator } from './core/Separator'; import { HStack } from './core/Stacks'; 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}
} /> ); } function Row({ label, value, labelClassName, }: { label: ReactNode; value: ReactNode; labelClassName?: string; }) { return (
{label}
{value}
); }