import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from 'ui' interface SmtpDisableConfirmationDialogProps { open: boolean onOpenChange: (open: boolean) => void onConfirm: () => Promise blockEditingOnReset?: boolean } export const SmtpDisableConfirmationDialog = ({ open, onOpenChange, onConfirm, blockEditingOnReset = false, }: SmtpDisableConfirmationDialogProps) => { return ( Disable custom SMTP

Switching back to the built-in SMTP service will{' '} reset any custom email templates and{' '} reduce the email rate limit to 2 emails per hour .

{!blockEditingOnReset && (

You won't be able to edit email templates until you set up custom SMTP again or upgrade your plan.

)}
Cancel Disable custom SMTP
) }