mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
14 lines
288 B
TypeScript
14 lines
288 B
TypeScript
import Link from 'next/link'
|
|
|
|
export default async function Blog(props) {
|
|
const params = await props.params
|
|
return (
|
|
<div id="blog-post-page">
|
|
<h1>Blog post {params.slug}</h1>
|
|
<Link href="/" style={{ display: 'block' }}>
|
|
Go home
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|