import React from 'react'; import { Button } from '@/components/ui/buttons'; import { AppTooltip } from '@/components/ui/tooltip'; import { Copy, ThumbsDown } from '@/components/ui/icons'; import { ThumbsDown as ThumbsDownFilled } from '@/components/ui/icons/NucleoIconFilled'; import { useDuplicateChat, useGetChat, useUpdateChat } from '@/api/buster_rest/chats'; export const ChatMessageOptions: React.FC<{ messageId: string; chatId: string; }> = React.memo(({ messageId, chatId }) => { const { mutateAsync: duplicateChat, isPending: isCopying } = useDuplicateChat(); const { mutateAsync: updateChat } = useUpdateChat(); const { data: feedback } = useGetChat({ id: chatId }, (data) => data.feedback); return (