From 3fcf06d41f8234c00738d75dffb0198929bd2c59 Mon Sep 17 00:00:00 2001 From: Boris Proshin Date: Thu, 20 Jul 2023 14:32:06 +0300 Subject: [PATCH] Remove extra copy button --- src/components/MessageItem.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/components/MessageItem.tsx b/src/components/MessageItem.tsx index f8c717e..d280d7f 100644 --- a/src/components/MessageItem.tsx +++ b/src/components/MessageItem.tsx @@ -10,7 +10,7 @@ import { ThemeIcon, Tooltip, } from "@mantine/core"; -import { Prism } from '@mantine/prism' +import { Prism } from "@mantine/prism"; import { IconCopy, IconUser } from "@tabler/icons-react"; import { useMemo } from "react"; import ReactMarkdown from "react-markdown"; @@ -58,21 +58,6 @@ export function MessageItem({ message }: { message: Message }) { language={language as any} children={`${props.children as string}`} /> - - {({ copied, copy }) => ( - - - - - - )} - ); },