diff options
Diffstat (limited to 'app/client/browser/browser.component.js')
| -rw-r--r-- | app/client/browser/browser.component.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/client/browser/browser.component.js b/app/client/browser/browser.component.js new file mode 100644 index 0000000..7330171 --- /dev/null +++ b/app/client/browser/browser.component.js @@ -0,0 +1,27 @@ +import { h, Component } from 'preact' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' +import { Route, Link } from 'react-router-dom' + +class Browser extends Component { + render(){ + const { app } = this.props + console.log(this.props) + return ( + <div className='app browser'> + <h1>browser</h1> + {app.tool} + </div> + ) + } +} + +const mapStateToProps = state => ({ + app: state.system.app, +}) + +const mapDispatchToProps = (dispatch, ownProps) => ({ + // actions: bindActionCreators(dashboardActions, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(Browser) |
