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.
12 lines
485 B
JavaScript
12 lines
485 B
JavaScript
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 text-gray-900 rounded-lg dark:text-white ${route().current(active) ? 'bg-gray-100' : 'hover:bg-gray-100'} dark:hover:bg-gray-700`}>
|
|
<span className="ml-3">{name}</span>
|
|
</Link>
|
|
</li>
|
|
)
|
|
} |