+ {props.output_files
+ .slice(0, props.showFullContent ? undefined : 1)
+ .map((file, index) => {
+ const fileIcon = getIconFromFilename(
+ file.filename,
+ "w-4 h-4 text-muted-foreground inline-flex",
+ );
+ return (
+
+
+ {fileIcon}
+
+ {file.filename}
+
+
+
+ {file.filename.match(/\.(txt|org|md|csv|json)$/) ? (
+
+ {file.b64_data}
+
+ ) : file.filename.match(
+ /\.(png|jpg|jpeg|webp)$/,
+ ) ? (
+
+ ) : null}
+
+ );
+ })}
+
+ )}