import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { withNamespaces, WithNamespaces } from 'react-i18next'; import HomeIllustration from 'static/images/home-illustration.png'; import { AppState } from 'store/reducers'; import './Intro.less'; interface StateProps { authUser: AppState['auth']['user']; } type Props = StateProps & WithNamespaces; const HomeIntro: React.SFC = ({ t, authUser }) => (

{t('home.intro.title')}

{t('home.intro.subtitle')}

{authUser ? ( {t('home.intro.browse')} ) : ( {t('home.intro.signup')} )} {t('home.intro.ccr')}
); export default connect(state => ({ authUser: state.auth.user, }))(withNamespaces()(HomeIntro));