import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2021-2026 GoodData Corporation
import { useIntl } from "react-intl";
import { ExportTabularPdfDialog } from "@gooddata/sdk-ui-kit";
import { useExportTabularPdfDialogContext } from "../dashboardContexts/ExportTabularPdfDialogContext.js";
/**
 * @internal
 */
export function ExportTabularPdfDialogProvider() {
    const { closeDialog, config, isOpen } = useExportTabularPdfDialogContext();
    const intl = useIntl();
    return isOpen ? (_jsx(ExportTabularPdfDialog, { ...config, cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: intl.formatMessage({ id: "dialogs.export.submit" }), onCancel: closeDialog })) : null;
}
//# sourceMappingURL=ExportTabularPdfDialogProvider.js.map