| 1 | import { |
| 2 | ChatBubbleLeftIcon, |
| 3 | SparklesIcon, |
| 4 | SwatchIcon, |
| 5 | } from "@heroicons/react/24/outline"; |
| 6 | import { MessageModes } from "core"; |
| 7 | |
| 8 | interface ModeIconProps { |
| 9 | mode: MessageModes; |
| 10 | className?: string; |
| 11 | } |
| 12 | |
| 13 | export function ModeIcon({ |
| 14 | mode, |
| 15 | className = "xs:h-3 xs:w-3 h-3 w-3", |
| 16 | }: ModeIconProps) { |
| 17 | switch (mode) { |
| 18 | case "agent": |
| 19 | return <SparklesIcon className={className} />; |
| 20 | case "plan": |
| 21 | return <SwatchIcon className={className} />; |
| 22 | case "chat": |
| 23 | return <ChatBubbleLeftIcon className={className} />; |
| 24 | } |
| 25 | } |