import React from 'react' ; import { useHistory } from 'react-router-dom' ; import { Box , Stack , Text , Button } from '@island.is/island-ui/core' ; import * as styles from './Authenticator.css' ; const AuthenticatorErrorScreen = ( ) => { const history = useHistory ( ) ; return ( < Box display = "flex" justifyContent = "center" alignItems = "center" className = { styles . fullScreen } > < Stack space = { 2 } align = "center" > < Text as = "h1" variant = "h2" > Óvænt villa < /Text> < Text variant = "intro" > Innskráning mistókst . < /Text> < Button variant = "primary" onClick = { ( ) => history . replace ( '/' ) } > Reyna aftur < /Button> < /Stack> < /Box>); } ; export default AuthenticatorErrorScreen ;