import { useState } from 'react'; import { Modal, Button, Text } from '@grafana/ui'; import { Trans, t } from 'app/core/internationalization'; interface Props { hideModal: () => void; onConfirm: () => Promise<{ data: void } | { error: unknown }>; } export const DeleteMigrationTokenModal = ({ hideModal, onConfirm }: Props) => { const [isDeleting, setIsDeleting] = useState(false); const onConfirmDelete = async () => { setIsDeleting(true); await onConfirm(); setIsDeleting(false); hideModal(); }; return ( If you've already used this token with a self-managed installation, that installation will no longer be able to upload content. ); };