226387694b
* added "with-route-as-modal" exemple extra space missing in style.css oops linted * Use Link and removed unrequired imports Co-authored-by: Luis Alvarez <luis@zeit.co>
11 lines
208 B
JavaScript
11 lines
208 B
JavaScript
import Link from 'next/link'
|
|
|
|
const PostCard = ({ id }) => {
|
|
return (
|
|
<Link href={`/?postId=${id}`} as={`/post/${id}`}>
|
|
<a className="postCard">{id}</a>
|
|
</Link>
|
|
)
|
|
}
|
|
|
|
export default PostCard
|