From c92f593caa5211707fb20f35c95e425baa9b6611 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 27 Apr 2025 12:13:29 +0200 Subject: [PATCH] courrier refactor rebuild 2 --- components/email/ComposeEmail.tsx | 33 ------------------------------- 1 file changed, 33 deletions(-) diff --git a/components/email/ComposeEmail.tsx b/components/email/ComposeEmail.tsx index 1c77745c..72759ce3 100644 --- a/components/email/ComposeEmail.tsx +++ b/components/email/ComposeEmail.tsx @@ -16,7 +16,6 @@ import ComposeEmailHeader from './ComposeEmailHeader'; import ComposeEmailForm from './ComposeEmailForm'; import ComposeEmailFooter from './ComposeEmailFooter'; import RichEmailEditor from './RichEmailEditor'; -import QuotedEmailContent from './QuotedEmailContent'; // Import ONLY from the centralized formatter import { @@ -100,38 +99,6 @@ function isLegacyProps( return 'showCompose' in props; } -// Helper function to adapt EmailMessage to QuotedEmailContent props format -function EmailMessageToQuotedContentAdapter({ - email, - type -}: { - email: EmailMessage, - type: 'reply' | 'reply-all' | 'forward' -}) { - // Get the email content - const content = email.content || email.html || email.text || ''; - - // Get the sender - const sender = email.from && email.from.length > 0 - ? { - name: email.from[0].name, - email: email.from[0].address - } - : { email: 'unknown@example.com' }; - - // Map the type to what QuotedEmailContent expects - const mappedType = type === 'reply-all' ? 'reply' : type; - - return ( - - ); -} - export default function ComposeEmail(props: ComposeEmailAllProps) { // Handle legacy props by adapting them to new component if (isLegacyProps(props)) {