bolt.new/packages/bolt/app/components/chat/AssistantMessage.tsx

15 lines
318 B
TypeScript
Raw Normal View History

2024-07-10 16:44:39 +00:00
import { memo } from 'react';
import { Markdown } from './Markdown';
interface AssistantMessageProps {
content: string;
}
export const AssistantMessage = memo(({ content }: AssistantMessageProps) => {
return (
<div className="overflow-hidden w-full">
<Markdown>{content}</Markdown>
</div>
);
});