summaryrefslogtreecommitdiffstats
path: root/pages/index.js
blob: 09933bf69c948576cbf68b67f31cc05134b03ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Component } from 'react';
import Items from '../components/Items';
import Header from '../components/Header';
import Page from '../components/Page';
import withData from '../lib/withData';
import PropTypes from 'prop-types';

const Home = props => {
  const page = parseInt(props.url.query.page) || 1;
  return (
    <Page>
      <Items page={page} />
    </Page>
  );
};

Home.propTypes = {
  url: PropTypes.object,
};

export default withData(Home);