stacker.news/pages/index.js

13 lines
303 B
JavaScript
Raw Normal View History

2021-04-12 18:05:09 +00:00
import Layout from '../components/layout'
2021-04-14 23:56:29 +00:00
import Items from '../components/items'
import { useRouter } from 'next/router'
2021-04-12 18:05:09 +00:00
export default function Index () {
const router = useRouter()
2021-04-12 18:05:09 +00:00
return (
<Layout>
<Items variables={{ sort: 'hot' }} rank key={router.query.key} />
2021-04-12 18:05:09 +00:00
</Layout>
)
}