diff options
Diffstat (limited to 'src/shared/footer.hoc.js')
-rw-r--r-- | src/shared/footer.hoc.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/shared/footer.hoc.js b/src/shared/footer.hoc.js new file mode 100644 index 0000000..535a52d --- /dev/null +++ b/src/shared/footer.hoc.js @@ -0,0 +1,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;
\ No newline at end of file |