mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Add a code icon for code-related train of thought
This commit is contained in:
@@ -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}`} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user