bolt.new/packages/bolt/app/components/chat/AssistantMessage.tsx
2024-07-11 16:20:57 +02:00

15 lines
318 B
TypeScript

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>
);
});