Add a code icon for code-related train of thought

This commit is contained in:
sabaimran 2024-10-09 23:56:57 -07:00
parent 536422a40c
commit e69a8382f2

View file

@ -26,6 +26,7 @@ import {
Palette,
ClipboardText,
Check,
Code,
} from "@phosphor-icons/react";
import DOMPurify from "dompurify";
@ -278,6 +279,10 @@ function chooseIconFromHeader(header: string, iconColor: string) {
return <Palette className={`${classNames}`} />;
}
if (compareHeader.includes("code")) {
return <Code className={`${classNames}`} />;
}
return <Brain className={`${classNames}`} />;
}