You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monitor-doc/resources/js/Components/NavItem.jsx

13 lines
321 B
React

2 years ago
import React from 'react';
import { Link } from '@inertiajs/react';
2 years ago
export default function NavItem({ href, active, children }) {
2 years ago
return (
<Link
href={href}
2 years ago
className={`btn btn-ghost rounded-btn ${active ? 'btn-active' : ''}`}
>
{children}
</Link>
);
}