import React from 'react';
import { UdpDialog } from '../../UI/fluent-web-components/UdpDialog';
import { UdpText } from '../../UI/fluent-web-components/UdpText';
import { UdpButton } from '../../UI/fluent-web-components/UdpButton';
import { getSignInAuthProvider } from './signInAuthProvider';
/**
 * Error modal shown when fetching the authed user fails. Extracted into its
 * own module so the stencil-based UdpDialog/UdpText/UdpButton — which pull in
 * the full stencil web-component graph (~574 KB udp-fluent-icon, etc.) — only
 * load when this rare error path renders, not on every initial app load.
 */
const UserErrorModal = ({ errorMessage }) => (React.createElement(UdpDialog, { open: true, showHeaderCloseButton: false }, React.createElement(UdpText, { variant: "subtitle2" }, errorMessage ? errorMessage : 'An unexpected error has ocurred.'), React.createElement(UdpButton, { slot: "action", appearance: "primary", onClick: () => {
        getSignInAuthProvider().logoutRedirect();
    } }, "Logou")));
export default UserErrorModal;
//# sourceMappingURL=UserErrorModal.js.map