clean: bump, add link component :p, minor misc cleanup fixes
This commit is contained in:
parent
75d352c101
commit
3cf2b0f4cd
7 changed files with 34 additions and 12 deletions
22
components/objects/Link.tsx
Normal file
22
components/objects/Link.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
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>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue