import { ChevronRight } from 'lucide-react' import Link from 'next/link' import React from 'react' import { Badge, cn } from 'ui' import { isCrossZoneHref } from '@/lib/cross-zone' const MenuItem = React.forwardRef< React.ElementRef<'a'>, React.ComponentPropsWithoutRef<'a'> & { description?: string icon?: string hasChevron?: boolean hoverColor?: 'foreground' | 'brand' badge?: { label: string variant?: 'default' | 'warning' | 'success' | 'destructive' | 'secondary' } } >( ( { className, title, href = '', description, icon, hasChevron, children, hoverColor = 'foreground', badge, ...props }, ref ) => { const content = children ?? ( <> {icon && (
{title}
{badge &&{description}
)}