import { modificationsRegex } from '~/utils/diff'; import { Markdown } from './Markdown'; interface UserMessageProps { content: string; } export function UserMessage({ content }: UserMessageProps) { return (
{sanitizeUserMessage(content)}
); } function sanitizeUserMessage(content: string) { return content.replace(modificationsRegex, '').trim(); }