| 372 | } |
| 373 | |
| 374 | function SidebarGroupLabel({ |
| 375 | className, |
| 376 | asChild = false, |
| 377 | ...props |
| 378 | }: React.ComponentProps<"div"> & { asChild?: boolean }) { |
| 379 | const Comp = asChild ? Slot.Root : "div"; |
| 380 | |
| 381 | return ( |
| 382 | <Comp |
| 383 | data-slot="sidebar-group-label" |
| 384 | data-sidebar="group-label" |
| 385 | className={cn( |
| 386 | "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", |
| 387 | "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", |
| 388 | className, |
| 389 | )} |
| 390 | {...props} |
| 391 | /> |
| 392 | ); |
| 393 | } |
| 394 | |
| 395 | function SidebarGroupAction({ |
| 396 | className, |