You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
647 B
18 lines
647 B
import { Link, InertiaLinkProps } from '@inertiajs/react';
|
|
|
|
export default function NavLink({ active = false, className = '', children, ...props }: InertiaLinkProps & { active: boolean }) {
|
|
return (
|
|
<Link
|
|
{...props}
|
|
className={
|
|
'btn m-0 bg-primary-background border-primary-background hover:bg-secondary-hover active:bg-secondary-pressed hover:bg-secondary-hover shadow-none ' +
|
|
(active
|
|
? 'bg-secondary-main border-secondary-main '
|
|
: ' ') +
|
|
className
|
|
}
|
|
>
|
|
{children}
|
|
</Link>
|
|
);
|
|
}
|