mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Add a code icon for code-related train of thought
This commit is contained in:
parent
536422a40c
commit
e69a8382f2
1 changed files with 5 additions and 0 deletions
|
@ -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}`} />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue