🤯 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 { BuiltinStreamingProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
import { memo } from 'react';
import type { BroadcastParams } from '../../../types';
const styles = stylex.create({
container: {
padding: '12px',
borderRadius: '8px',
backgroundColor: cssVar.colorFillQuaternary,
backgroundImage: 'none',
},
instruction: { fontSize: '13px', color: cssVar.colorTextSecondary },
});
export const BroadcastStreaming = memo<BuiltinStreamingProps<BroadcastParams>>(({ args }) => {
const { instruction } = args || {};
if (!instruction) return null;
return (
<div {...stylex.props(styles.container)}>
<div {...stylex.props(styles.instruction)}>
<Markdown animated variant={'chat'}>
{instruction}
</Markdown>
</div>
</div>
);
});
BroadcastStreaming.displayName = 'BroadcastStreaming';
export default BroadcastStreaming;