🤯 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
import { cssVar, Flexbox, Markdown, Text } from '@lobehub/ui';
import { memo } from 'react';
interface HighlightedContentProps {
children?: string | null;
title?: string | null;
}
const HighlightedContent = memo<HighlightedContentProps>(({ title, children }) => {
if (!children) return;
const content = (
<Markdown
fontSize={14}
variant={'chat'}
style={{
color: cssVar.colorText,
overflow: 'visible',
}}
>
{children || ''}
</Markdown>
);
if (!title) return content;
return (
<Flexbox gap={8}>
<Text weight={500}>{title}</Text>
{content}
</Flexbox>
);
});
export default HighlightedContent;