import { connect } from 'react-redux';
import { StoreState } from 'store/rootReducer';

import NotFound, { StateProps, DispatchProps, OwnProps } from './NotFound';

const mapStateToProps = (state: StoreState): {} => ({
  session: state.session.data,
  lg: state.content.lg,
});

const mapDispatchToProps = {};

const Wrapped = connect<StateProps, DispatchProps, OwnProps>(
  mapStateToProps,
  mapDispatchToProps,
)(NotFound);

export default Wrapped;
