import { jsx as _jsx } from "react/jsx-runtime";
import { FormattedMessage, useIntl } from "react-intl";
import { ConfirmDialog } from "@gooddata/sdk-ui-kit";
export function AlertDeleteDialog({ title, onDelete, onCancel, }) {
    const intl = useIntl();
    return (_jsx(ConfirmDialog, { displayCloseButton: true, isPositive: false, headline: intl.formatMessage({ id: "insightAlert.config.delete.title" }), cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: intl.formatMessage({ id: "delete" }), onSubmit: onDelete, onClose: onCancel, onCancel: onCancel, children: _jsx(FormattedMessage, { id: "insightAlert.config.delete.message", values: {
                title,
                b: (chunks) => _jsx("strong", { children: chunks }),
            } }) }));
}
