wishlist-client/components/common/Link.tsx
kjuulh 13e5d967ce
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
Fix missing children
2022-10-27 21:46:17 +02:00

18 lines
361 B
TypeScript

import { FC } from 'react'
import NextLink from 'next/link'
interface LinkProps {
page: string
className: string
children?: React.ReactNode
}
const Link: FC<LinkProps> = (props) => (
<NextLink href={props.page}>
<a className={props.className + ' underline hover:text-gray-800'}>
{props.children}
</a>
</NextLink>
)
export default Link