import { Link } from '@inertiajs/react';

export default function NavLink({ href, active, children, className = '' }) {
    return (
        <Link
            href={href}
            className={`nav-link ${active ? 'active fw-bold' : ''} ${className}`}
            aria-current={active ? 'page' : undefined}
        >
            {children}
        </Link>
    );
}
