2020-04-07 15:48:32 +02:00
|
|
|
import { Controller } from 'cerebral'
|
2017-09-23 16:30:22 +02:00
|
|
|
import Devtools from 'cerebral/devtools'
|
|
|
|
import { Container } from '@cerebral/react'
|
|
|
|
import Page from '../components/Page'
|
|
|
|
import clock from '../modules/clock'
|
|
|
|
|
2020-05-27 07:14:26 +02:00
|
|
|
const Other = (props) => {
|
|
|
|
const { stateChanges } = props
|
|
|
|
|
|
|
|
const controller = Controller({
|
|
|
|
devtools:
|
|
|
|
process.env.NODE_ENV === 'production' || typeof window === 'undefined'
|
|
|
|
? null
|
|
|
|
: Devtools({ host: 'localhost:8787' }),
|
|
|
|
modules: { clock },
|
|
|
|
stateChanges: stateChanges,
|
|
|
|
})
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Container controller={controller}>
|
|
|
|
<Page title="Index Page" linkTo="/other" />
|
|
|
|
</Container>
|
|
|
|
)
|
2017-09-23 16:30:22 +02:00
|
|
|
}
|
2020-05-27 07:14:26 +02:00
|
|
|
|
|
|
|
export default Other
|