blob: 733017171190397d50eeb7dd29969300fbbb24e5 (
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
|
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)
|