'use client' import { useState } from 'react' import { useTheme } from '@/lib/ThemeContext' export function EmailImportModal({ onClose, onImport }: { onClose: () => void onImport: (content: string, subject?: string) => void }) { const { isDark } = useTheme() const [emailSubject, setEmailSubject] = useState('') const [emailContent, setEmailContent] = useState('') const [isProcessing, setIsProcessing] = useState(false) const handleImport = async () => { if (!emailContent.trim()) return setIsProcessing(true) // Simulate processing delay await new Promise(resolve => setTimeout(resolve, 800)) onImport(emailContent, emailSubject || undefined) setIsProcessing(false) onClose() } return (
📧

E-Mail manuell einfuegen

Fuegen Sie den Inhalt einer Google Alert E-Mail ein

{/* Subject (optional) */}
setEmailSubject(e.target.value)} className={`w-full px-4 py-3 rounded-xl border ${ isDark ? 'bg-white/10 border-white/20 text-white placeholder-white/40' : 'bg-white border-slate-200 text-slate-900 placeholder-slate-400' }`} />
{/* Email Content */}