summaryrefslogtreecommitdiff
path: root/app/client/common/header.component.js
blob: b5a484e15fc441966b391dcc4264b4228cb26944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { h, Component } from 'preact'
import { connect } from 'react-redux'

function Header(props) {
  return (
    <header>
      <b>live cortex</b>
      <span>{props.fps} fps</span>
    </header>
  )
}

const mapStateToProps = state => ({
  fps: state.live.fps,
  frame: state.live.frame,
})

const mapDispatchToProps = (dispatch, ownProps) => ({
})

export default connect(mapStateToProps, mapDispatchToProps)(Header)