import * as React from "react"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; import * as routes from "../../constants/routes"; import { SignOutButton } from "../SignOut"; const NavigationComponent = ({ authUser }: any) => (
{authUser ? : }
); const NavigationAuth = () => ( ); const NavigationNonAuth = () => ( ); const mapStateToProps = (state: any) => ({ authUser: state.sessionState.authUser }); export const Navigation = connect(mapStateToProps)(NavigationComponent);