import { Link, useLocation } from 'react-router' import { twMerge } from 'tailwind-merge' import { MENU } from './menu' export const Sidebar = () => { const { pathname } = useLocation() return (
{MENU.map(({ group, items }) => (
{group}
{items.map(({ title, url, icon: Icon }) => ( {title} ))}
))}
) }