🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
'use client';
import type { MessageMcpAppSource } from '@lobechat/types';
import { cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { AppWindowIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { mcpAppNameSelector } from '@/features/MCPApp/appName';
import { useToolStore } from '@/store/tool';
/**
* Quiet line under a user bubble an MCP App view posted. It marks the message
* as a follow-up sent from that view inside this conversation, not a fresh
* question the user typed.
*/
export const McpAppSourceFooter = ({ source }: { source: MessageMcpAppSource }) => {
const { t } = useTranslation('plugin');
const appName = useToolStore(mcpAppNameSelector(source.identifier));
return (
<Flexbox horizontal align={'center'} gap={4} justify={'flex-end'} paddingBlock={4}>
<Icon icon={AppWindowIcon} size={14} style={{ color: cssVar.colorTextQuaternary }} />
<Text style={{ fontSize: 12 }} type={'secondary'}>
{t('mcpApp.message.source', { app: appName })}
</Text>
</Flexbox>
);
};