- {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)$/,
- ) ? (
-
.pop()};base64,${file.b64_data}`})
- ) : null}
-
- );
- })}
+
+
+ {fileIcon}
+
+ code artifacts
+
- )}
+
0 ? "hidden" : "overflow-hidden line-clamp-3"}`}
+ >
+ {sanitizedCodeSnippet}
+
+ {props.output_files?.length > 0 && (
+
+ {props.output_files
+ .slice(0, props.showFullContent ? undefined : 1)
+ .map((file, index) => {
+ return (
+
+
+
+ {file.filename}
+
+
+
+ {file.filename.match(
+ /\.(txt|org|md|csv|json)$/,
+ ) ? (
+
+ {file.b64_data}
+
+ ) : file.filename.match(
+ /\.(png|jpg|jpeg|webp)$/,
+ ) ? (
+
.pop()};base64,${file.b64_data}`})
+ ) : null}
+
+ );
+ })}
+
+ )}
+
-
+
{fileIcon}
- Code
-
-
+
+ code
+
+
+
+ {sanitizedCodeSnippet}
+
@@ -291,21 +301,17 @@ function GenericOnlineReferenceCard(props: OnlineReferenceCardProps) {