1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00
conky/web/components/CustomLink.tsx
Brenden Matthews 47ad3f9982 Refactor docs, make a new website.
* Docs have been migrated from docbook to yaml + jinja2 + pandoc
* Created a new (basic) website for docs based on React + Tailwinds
2022-09-30 18:21:24 -04:00

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>
</>
)
}