summaryrefslogtreecommitdiff
path: root/app/client/modules/pix2pixhd/views/pix2pixhd.new.js
blob: d861229b893ef078dc3729f8c56baec40ba601af (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
import { h, Component } from 'preact'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import util from '../../../util'

import { Views } from '../../../common'

import * as pix2pixhdActions from '../pix2pixhd.actions'
import pix2pixhdModule from '../pix2pixhd.module'

function Pix2PixHDNew(props){
  return (
    <Views.New
      db={props.pix2pixhd}
      path='/pix2pixhd/sequences/'
      actions={props.actions}
      module={pix2pixhdModule}
      history={props.history}
    />
  )
}

const mapStateToProps = state => ({
  pix2pixhd: state.module.pix2pixhd,
})

const mapDispatchToProps = (dispatch, ownProps) => ({
  actions: bindActionCreators(pix2pixhdActions, dispatch),
})

export default connect(mapStateToProps, mapDispatchToProps)(Pix2PixHDNew)