diff --git a/frontend/src/components/Answer/Answer.tsx b/frontend/src/components/Answer/Answer.tsx index 784ef6061..695b24c5b 100644 --- a/frontend/src/components/Answer/Answer.tsx +++ b/frontend/src/components/Answer/Answer.tsx @@ -53,6 +53,16 @@ export const Answer = ({ return citationFilename; } + useEffect(() => { + const handleCopy = () => { + alert("Please consider where you paste this content."); + }; + document.addEventListener("copy", handleCopy); + return () => { + document.removeEventListener("copy", handleCopy); + }; + }, []); + return ( <>