blob: 535a52d61fe24fe19a13f286aec07f52f55725b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import React, { Component } from "react";
import { Link } from 'react-router-dom';
import { connect } from "react-redux";
import { compose } from "redux";
import './footer.css';
const Footer = (HocComponent) => {
return class FooterComponent extends Component {
render() {
return (
<React.Fragment>
<HocComponent {...this.props} />
<footer className="footer">
<div className="container">Footer</div>
</footer>
</React.Fragment>
);
}
}
}
const mapStateToProps = state => {
return {
};
};
const WithFooter = compose(
connect(mapStateToProps, null),
Footer
)
export default WithFooter;
|