diff --git a/components/chat-message-actions.tsx b/components/chat-message-actions.tsx
index 2905f8a..d4e4b40 100644
--- a/components/chat-message-actions.tsx
+++ b/components/chat-message-actions.tsx
@@ -18,6 +18,11 @@ export function ChatMessageActions({
}: ChatMessageActionsProps) {
const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 })
+ const onCopy = () => {
+ if (isCopied) return
+ copyToClipboard(message.content)
+ }
+
return (
-