import { KnowledgeIcon } from "@/components/Option/Knowledge/KnowledgeIcon" type Props = { source: { name?: string url?: string mode?: string type?: string pageContent?: string content?: string } onSourceClick?: (source: any) => void } export const MessageSource: React.FC = ({ source, onSourceClick }) => { if (source?.mode === "rag") { return ( ) } return ( {source.name} ) }