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/SidebarMenuItem.jsx

12 lines
433 B
React

2 years ago
import React from 'react'
import { Link } from '@inertiajs/inertia-react'
export default function MenuItem({ routeName, name, active }) {
return (
<li>
<Link href={route(routeName)} className={`flex items-center p-2 text-base font-normal rounded-lg ${route().current(active) ? 'bg-base-200' : 'hover:bg-base-200'} `}>
2 years ago
<span className="ml-3">{name}</span>
</Link>
</li>
)
}