mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 22:42:21 +00:00
15 lines
318 B
TypeScript
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>
|
||
|
);
|
||
|
});
|