This commit is contained in:
john 2025-05-18 13:41:08 +02:00
parent abd7c2f073
commit 384da1e832
18 changed files with 150 additions and 116 deletions

View file

@ -0,0 +1,21 @@
import { PropsWithChildren } from 'react'
interface PrimaryLinkButtonProps {
href: string
className?: string
secondary?: boolean
}
export default function AnchorButton({
href,
className: extraClasses = '',
children,
secondary = false,
}: PropsWithChildren<PrimaryLinkButtonProps>) {
const klass = secondary ? 'secondary-button' : 'primary-button'
return (
<a href={href} className={`${klass} text-center ${extraClasses}`}>
{children}
</a>
)
}