2022-02-19 17:01:05 +01:00
|
|
|
import Link from 'next/link'
|
|
|
|
|
2023-08-19 18:01:22 +02:00
|
|
|
export const PageLink = ({ href, txt, className = '', children = null }) => (
|
2022-12-04 15:04:56 +01:00
|
|
|
<Link
|
|
|
|
href={href}
|
2023-07-16 17:15:10 +02:00
|
|
|
className={`underline decoration-2 hover:decoration-4 ${className}`}
|
2023-08-19 18:01:22 +02:00
|
|
|
title={txt ? txt : ''}
|
2022-12-04 15:04:56 +01:00
|
|
|
>
|
2023-08-19 18:01:22 +02:00
|
|
|
{children ? children : txt}
|
2022-12-04 15:04:56 +01:00
|
|
|
</Link>
|
2022-02-19 17:01:05 +01:00
|
|
|
)
|