import type { ReactNode } from 'react' import { CaretDown, CaretRight } from '@phosphor-icons/react' import { SidebarCountPill } from '../SidebarParts' import { SIDEBAR_GROUP_HEADER_PADDING } from './sidebarStyles' interface SidebarGroupHeaderProps { label: string collapsed: boolean onToggle: () => void count?: number children?: ReactNode } export function SidebarGroupHeader({ label, collapsed, onToggle, count, children, }: SidebarGroupHeaderProps) { return (
{children ?? (count != null && ( ))}
) }