import * as React from 'react'; import { connect } from 'react-redux'; import { push as historyPush } from 'connected-react-router'; import { Link } from 'react-router-dom'; import { Logo } from '~/components/main/Logo'; import * as style from './style.scss'; import { Filler } from '~/components/containers/Filler'; import { selectUser } from '~/redux/auth/selectors'; import { Group } from '~/components/containers/Group'; const mapStateToProps = selectUser; const mapDispatchToProps = { push: historyPush }; type IProps = ReturnType & typeof mapDispatchToProps & {}; const HeaderUnconnected: React.FunctionComponent = ({ username, is_user }) => (
flow image editor horizontal
username
); const Header = connect( mapStateToProps, mapDispatchToProps )(HeaderUnconnected); export { Header };