import React from 'react'; import { AlertCircle } from 'lucide-react'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; import { Button } from '@/components/ui/button'; interface DeleteConfirmDialogProps { show: boolean; selectedCount: number; onConfirm: () => Promise; onCancel: () => void; } export function DeleteConfirmDialog({ show, selectedCount, onConfirm, onCancel }: DeleteConfirmDialogProps) { return ( !open && onCancel()}> Delete {selectedCount} email{selectedCount !== 1 ? 's' : ''}? This will move the selected email{selectedCount !== 1 ? 's' : ''} to the trash folder. You can restore them later from the trash folder if needed. Cancel Delete ); } interface LoginNeededAlertProps { show: boolean; onLogin: () => void; onClose: () => void; } export function LoginNeededAlert({ show, onLogin, onClose }: LoginNeededAlertProps) { if (!show) return null; return ( Please log in to your email account You need to connect your email account before you can access your emails.
); }