import { Link as InertiaLink } from '@inertiajs/react';
import { ComponentProps } from 'react';

export default function Link({
    href,
    children,
    ...props
}: ComponentProps<typeof InertiaLink>) {
    return (
        <InertiaLink
            href={href}
            className="focus:ring-indigo-500 rounded-md text-sm font-semibold text-neutral-600 hover:text-neutral-900 focus:outline-none focus:ring-2 focus:ring-offset-2"
            {...props}
        >
            {children}
        </InertiaLink>
    );
}
