ss_website/components/mdx/link.tsx

10 lines
235 B
TypeScript
Raw Normal View History

2024-05-16 05:19:03 +00:00
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>
}