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

15 lines
323 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">
2024-08-22 13:06:51 +00:00
<Markdown html>{content}</Markdown>
2024-07-10 16:44:39 +00:00
</div>
);
});