stacker.news/pages/recent.js

13 lines
306 B
JavaScript
Raw Normal View History

2021-04-24 21:05:07 +00:00
import Layout from '../components/layout'
import Items from '../components/items'
import { useRouter } from 'next/router'
2021-04-24 21:05:07 +00:00
export default function Index () {
const router = useRouter()
2021-04-24 21:05:07 +00:00
return (
<Layout>
<Items variables={{ sort: 'recent' }} rank key={router.query.key} />
2021-04-24 21:05:07 +00:00
</Layout>
)
}