15 lines
232 B
JavaScript
15 lines
232 B
JavaScript
|
import { useRouter } from 'next/router'
|
||
|
|
||
|
export default () => {
|
||
|
const router = useRouter()
|
||
|
const { post, id } = router.query
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
<p>
|
||
|
Blog post {post} comment {id || '(all)'}
|
||
|
</p>
|
||
|
</>
|
||
|
)
|
||
|
}
|