| 553 | } |
| 554 | |
| 555 | function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">) { |
| 556 | return ( |
| 557 | <div |
| 558 | data-slot="sidebar-menu-badge" |
| 559 | data-sidebar="menu-badge" |
| 560 | className={cn( |
| 561 | "pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none", |
| 562 | "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", |
| 563 | "peer-data-[size=sm]/menu-button:top-1", |
| 564 | "peer-data-[size=default]/menu-button:top-1.5", |
| 565 | "peer-data-[size=lg]/menu-button:top-2.5", |
| 566 | "group-data-[collapsible=icon]:hidden", |
| 567 | className, |
| 568 | )} |
| 569 | {...props} |
| 570 | /> |
| 571 | ); |
| 572 | } |
| 573 | |
| 574 | function SidebarMenuSkeleton({ |
| 575 | className, |