import React from 'react'; import CodeBlock from './CodeBlock'; const formatText = (text) => { return text .replace(/\n/g, "
") .replace(/\*\*(.*?)\*\*/g, "$1") .replace(/\*(.*?)\*/g, "$1"); }; export default function MessageBubble({ role, content, time }) { return (
{time}
); } function FormattedContent({ content }) { const blocks = content.split('```'); return ( <> {blocks.map((block, i) => i % 2 === 1 ? ( ) : (
) )} ); }