import { useSaveResponse } from '../../hooks/useSaveResponse'; import type { HttpResponse } from '../../lib/models'; import { getContentTypeHeader } from '../../lib/models'; import { Banner } from '../core/Banner'; import { Button } from '../core/Button'; import { InlineCode } from '../core/InlineCode'; interface Props { response: HttpResponse; } export function BinaryViewer({ response }: Props) { const saveResponse = useSaveResponse(response); const contentType = getContentTypeHeader(response.headers) ?? 'unknown'; return (

Content type {contentType} cannot be previewed

); }