mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
20 lines
489 B
JavaScript
20 lines
489 B
JavaScript
|
import React from 'react'
|
||
|
import { connect } from 'react-redux'
|
||
|
|
||
|
import PageCount from './PageCount'
|
||
|
import Clock from './Clock'
|
||
|
import Placeholder from './Placeholder'
|
||
|
|
||
|
function Page ({ clock, placeholder, linkTo, title }) {
|
||
|
return (
|
||
|
<React.Fragment>
|
||
|
<h1>{title}</h1>
|
||
|
<Clock lastUpdate={clock.lastUpdate} light={clock.light} />
|
||
|
<PageCount />
|
||
|
<Placeholder placeholder={placeholder} />
|
||
|
</React.Fragment>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default connect(state => state)(Page)
|