diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 6148c87..8b71bf8 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -404,6 +404,11 @@ const decodeEmailContent = (content: string, charset: string = 'utf-8') => { return convertCharset(content, charset); }; +// Add this with your other functions +const getSelectedEmail = () => { + return emails.find(email => email.id === selectedEmail?.id); +}; + export default function MailPage() { const router = useRouter(); const [loading, setLoading] = useState(true); @@ -1051,7 +1056,6 @@ export default function MailPage() { {showCompose && (
- {/* Modal Header */}

{composeSubject.startsWith('Re:') ? 'Reply' : @@ -1075,10 +1079,8 @@ export default function MailPage() {

- {/* Modal Body */}
- {/* Recipients */}
- {/* CC/BCC Controls */}