import { TriangleAlert } from 'lucide-react' import { useTranslation } from '../../i18n' import { ActionDialog } from '@/components/ui/ActionDialog' type Props = { open: boolean loading?: boolean onClose: () => void onConfirm: () => void | Promise } export function AutoModeOptInDialog({ open, loading = false, onClose, onConfirm }: Props) { const t = useTranslation() return ( {/* Warning tones are paired: `--color-warning` is the marker (icon, border) and `--color-on-warning-container` is the only readable foreground on the container fill. The `/N` alpha this replaced is also dropped outright by the Safari 15 WebView. */}
)} actions={[ { label: t('common.cancel'), onClick: onClose, variant: 'secondary', }, { label: t('permMode.enableAutoBtn'), onClick: onConfirm, variant: 'primary', loading, }, ]} /> ) }