wishlist-client/components/common/Link.tsx

17 lines
332 B
TypeScript
Raw Normal View History

2022-04-24 23:12:11 +02:00
import { FC } from 'react'
import NextLink from 'next/link'
interface LinkProps {
page: string
className: string
}
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