import React from 'react';
import { getSignInAuthProvider, getApiAccessScope } from './signInAuthProvider';
import { Button, Dialog, DialogActions, DialogContent, DialogContentText, Typography } from '@material-ui/core';
const AuthDialogs = (props) => {
    const { nonExistingUserModalOpen, errorMessage } = props;
    return (React.createElement(React.Fragment, null, React.createElement(Dialog, { open: nonExistingUserModalOpen, maxWidth: "xs", onClose: () => { } }, React.createElement(DialogContent, null, React.createElement(DialogContentText, null, React.createElement(Typography, { variant: "subtitle2" }, errorMessage ? errorMessage : 'An unexpected error has ocurred.'))), React.createElement(DialogActions, null, React.createElement(Button, { onClick: () => {
            getSignInAuthProvider().logoutRedirect();
        }, color: "primary" }, "Logou")))));
};
export default AuthDialogs;
//# sourceMappingURL=AuthDialogs.js.map