import { Button } from '@/components/ui/button' import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card' import { Shield, Lock, Trash2, X, Check, AlertTriangle } from 'lucide-react' import { useState } from 'react' interface PrivacySecurityProps { onDisconnect?: (accountId: string) => void onDeleteAccount?: () => void connectedAccounts?: Array<{ id: string; email: string; provider: string }> } export function PrivacySecurity({ onDisconnect, onDeleteAccount, connectedAccounts = [] }: PrivacySecurityProps) { const [showDeleteConfirm, setShowDeleteConfirm] = useState(false) return (
Email headers and metadata
We read: sender, subject, date, labels/categories. This is all we need to categorize emails.
Email preview/snippet
We read the first few lines to help AI understand the email content.
Your preferences
VIP senders, category settings, company labels, sorting rules.
Statistics
Counts of sorted emails, categories, time saved. No email content.
Account connection tokens
Encrypted OAuth tokens to access your email (required for sorting).
Email bodies/content
We never store the full content of your emails.
Attachments
We never access or store file attachments.
Passwords
We use OAuth - we never see or store your email passwords.
{account.email}
{account.provider}
This will delete all your preferences, statistics, connected accounts, and subscription data.
Are you absolutely sure?
This will permanently delete: