import { useDecryptMessage } from '@app/chats/hooks/useDecryptMessage'; import { NoteContent } from '@shared/notes'; import { User } from '@shared/user'; import { parser } from '@utils/parser'; export function ChatMessageItem({ data, userPubkey, userPrivkey, }: { data: any; userPubkey: string; userPrivkey: string; }) { const decryptedContent = useDecryptMessage(data, userPubkey, userPrivkey); // if we have decrypted content, use it instead of the encrypted content if (decryptedContent) { data['content'] = decryptedContent; } return (
{data.content}