We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e25b3 commit 3d3d94cCopy full SHA for 3d3d94c
templates/types/streaming/nextjs/app/components/ui/chat/csv-content.tsx
@@ -1,11 +1,14 @@
1
import { CsvData } from ".";
2
3
+const LIMIT_DISPLAY = 100; // Limit the display of CSV content to 100 characters
4
+
5
export default function CsvContent({ data }: { data: CsvData }) {
6
+ const summaryContent = data.content.slice(0, LIMIT_DISPLAY) + "...";
7
return (
8
<div className="space-y-2">
9
<h3 className="font-semibold">CSV Raw Content</h3>
10
<pre className="bg-secondary max-h-[200px] overflow-auto rounded-md p-4 block text-sm">
- {data.content}
11
+ {summaryContent}
12
</pre>
13
</div>
14
);
0 commit comments