mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 01:57:09 +00:00
22 lines
307 B
TypeScript
22 lines
307 B
TypeScript
|
import Link from 'next/link'
|
||
|
import { Url } from 'url'
|
||
|
|
||
|
interface CustomLinkProps {
|
||
|
as: Url
|
||
|
href: Url
|
||
|
}
|
||
|
|
||
|
export default function CustomLink({
|
||
|
as,
|
||
|
href,
|
||
|
...otherProps
|
||
|
}: CustomLinkProps) {
|
||
|
return (
|
||
|
<>
|
||
|
<Link as={as} href={href}>
|
||
|
<a {...otherProps} />
|
||
|
</Link>
|
||
|
</>
|
||
|
)
|
||
|
}
|