import React from 'react'; import { cx } from '@leafygreen-ui/emotion'; import { useIdAllocator } from '@leafygreen-ui/hooks'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { comboboxGroupLabel, comboboxGroupLabelThemeStyle, comboboxGroupStyle, } from './ComboboxGroup.styles'; import { ComboboxGroupProps } from './ComboboxGroup.types'; /** * @internal */ export function InternalComboboxGroup({ label, className, children, }: ComboboxGroupProps): JSX.Element { const { theme } = useDarkMode(); const groupId = useIdAllocator({ prefix: 'combobox-group' }); const childCount = React.Children.count(children); return childCount > 0 ? (