mirror of
https://github.com/ihatenodejs/aidxnCC.git
synced 2025-04-25 14:05:58 +00:00
22 lines
438 B
TypeScript
22 lines
438 B
TypeScript
import { default as NextLink } from 'next/link'
|
|
|
|
interface LinkProps {
|
|
href: string
|
|
className?: string
|
|
target?: string
|
|
rel?: string
|
|
children: React.ReactNode
|
|
}
|
|
|
|
export default function Link(props: LinkProps) {
|
|
return (
|
|
<NextLink
|
|
href={props.href}
|
|
className={`text-blue-400 hover:underline ${props.className}`}
|
|
target={props.target}
|
|
rel={props.rel}
|
|
>
|
|
{props.children}
|
|
</NextLink>
|
|
)
|
|
} |