
const AuthButton = withRouter(
    ({ history }) =>
        fakeAuth.isAuthenticated ? (
            <a href="#" onClick={() => {fakeAuth.signout(() => history.push("/"));}} title="Выход" className="text bold login-button button-open">Выход</a>                                
        ) : (
            <Link to='/login'><a href="#" title="Вход" className="text bold login-button button-open">Вход</a></Link>
        )
);
