import React from 'react';
import { UdpDialog } from '../../UI/fluent-web-components/UdpDialog';
import { UdpTenantSelect } from './UdpTenantSelect';
export const TenantAccessDialog = ({ tenants, onTenantChange, productName, open }) => {
    const message = productName
        ? `Your current tenant does not have access to ${productName}. Please select another tenant to continue.`
        : 'Your current tenant does not have access to this application. Please select another tenant to continue.';
    return (React.createElement(UdpDialog, { open: open, type: "alert", dialogTitle: "Tenant Access Required", showHeaderCloseButton: false }, React.createElement("p", null, message), React.createElement(UdpTenantSelect, { tenants: tenants, onTenantChange: onTenantChange, label: "Available Tenants" })));
};
//# sourceMappingURL=TenantAccessDialog.js.map