// Renders one `StreamRow` — flat `
{lines.map((line, i) => {
const cls = line.startsWith('+ ') ? 'diff-add' : line.startsWith('- ') ? 'diff-del' : 'diff-ctx';
return (
{line}
{'\n'}
);
})}
);
}
export function Row({ row }: { row: StreamRow }) {
if (row.details) {
return (
{linkifyToNodes(row.plainBody)}}