1
0
Fork 0
freesewing/sites/shared/components/page-link.mjs

12 lines
280 B
JavaScript
Raw Normal View History

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 }) => (
<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 : ''}
>
2023-08-19 18:01:22 +02:00
{children ? children : txt}
</Link>
2022-02-19 17:01:05 +01:00
)