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 (
{/* What data is accessed */} What data is accessed We only access what's necessary for sorting

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.

{/* What is stored */} What is stored Your data stays secure

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).

{/* What is never stored */} What is never stored Your privacy is protected

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.

{/* How to disconnect */} {connectedAccounts.length > 0 && ( Disconnect email accounts Remove access to your email accounts {connectedAccounts.map((account) => (

{account.email}

{account.provider}

{onDisconnect && ( )}
))}
)} {/* Delete account */} {onDeleteAccount && ( Delete my data Permanently delete all your data and account {!showDeleteConfirm ? (

This action cannot be undone

This will delete all your preferences, statistics, connected accounts, and subscription data.

) : (

Are you absolutely sure?

This will permanently delete:

  • All your email account connections
  • All sorting statistics
  • All preferences and settings
  • Your subscription (if active)
)}
)}
) }