import { useSidebarStore } from "@/store/SidebarStore"; import { cn } from "@/util/utils"; import { NavLink, useMatches } from "react-router-dom"; import { Badge } from "./ui/badge"; type Props = { title: string; links: Array<{ label: string; to: string; newTab?: boolean; disabled?: boolean; beta?: boolean; icon?: React.ReactNode; }>; }; function NavLinkGroup({ title, links }: Props) { const { collapsed } = useSidebarStore(); const matches = useMatches(); const groupIsActive = matches.some((match) => { const inputs = links.map((link) => link.to); return inputs.includes(match.pathname); }); return (