import { Alert, ConfirmModal } from '@grafana/ui'; import { Trans, t } from 'app/core/internationalization'; interface DeleteTokenConfirmationModalProps { isOpen: boolean; hasError: boolean; onConfirm: () => void; onDismiss: () => void; } export function DeleteTokenConfirmationModal(props: DeleteTokenConfirmationModalProps) { const { isOpen, hasError, onConfirm, onDismiss } = props; const body = ( <>

If you've already used this token with a self-managed installation, that installation will no longer be able to upload content.

{hasError && ( )} ); return ( ); }