import type { HttpResponse } from '@yaakapp-internal/models'; import classNames from 'classnames'; import Papa from 'papaparse'; import { useMemo } from 'react'; import { useResponseBodyText } from '../../hooks/useResponseBodyText'; import { Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow } from '../core/Table'; interface Props { response: HttpResponse; className?: string; } export function CsvViewer({ response, className }: Props) { const body = useResponseBodyText({ response, filter: null }); return (