diff --git a/src/components/Chat/ChatContent/Message/MessageContent.tsx b/src/components/Chat/ChatContent/Message/MessageContent.tsx index c5e8ddb..ebe1f80 100644 --- a/src/components/Chat/ChatContent/Message/MessageContent.tsx +++ b/src/components/Chat/ChatContent/Message/MessageContent.tsx @@ -19,6 +19,7 @@ import TickIcon from '@icon/TickIcon'; import CrossIcon from '@icon/CrossIcon'; import RefreshIcon from '@icon/RefreshIcon'; import DownChevronArrow from '@icon/DownChevronArrow'; +import CopyIcon from '@icon/CopyIcon'; import useSubmit from '@hooks/useSubmit'; @@ -126,6 +127,10 @@ const ContentView = React.memo( handleSubmit(); }; + const handleCopy = () => { + navigator.clipboard.writeText(content); + }; + return ( <>