10 lines
235 B
TypeScript
10 lines
235 B
TypeScript
|
import Link from 'next/link'
|
||
|
|
||
|
interface PostLinkProps {
|
||
|
href: string
|
||
|
children: React.ReactNode
|
||
|
}
|
||
|
|
||
|
export default function PostLink({ href, ...props }: PostLinkProps) {
|
||
|
return <Link href={href} {...props}>{props.children}</Link>
|
||
|
}
|