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