import { jsx as _jsx } from "react/jsx-runtime";
import { FormattedMessage, useIntl } from "react-intl";
import { ConfirmDialog, Typography } from "@gooddata/sdk-ui-kit";
export function FilterViewDeleteConfirm({ filterView, onConfirm, onCancel }) {
    const intl = useIntl();
    return (_jsx(ConfirmDialog, { onSubmit: onConfirm, onCancel: onCancel, isPositive: false, className: "gd-filter-view__delete-dialog s-gd-filter-view__delete-dialog", headline: intl.formatMessage({ id: "filters.filterViews.delete.title" }), submitButtonText: intl.formatMessage({ id: "filters.filterViews.delete.deleteButton" }), cancelButtonText: intl.formatMessage({ id: "filters.filterViews.delete.cancelButton" }), children: _jsx(Typography, { tagName: "p", children: _jsx(FormattedMessage, { id: "filters.filterViews.delete.body", values: {
                    view: filterView.name,
                    b: (chunks) => (_jsx("strong", { className: "gd-filter-view__delete-dialog__item", children: chunks })),
                } }) }) }));
}
