import React from 'react'; import { css, cx } from '@leafygreen-ui/emotion'; import { useIdAllocator } from '@leafygreen-ui/hooks'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { colorSets } from '../styleSets'; import { optionGroupLabelStyle, optionGroupStyle } from './OptionGroup.styles'; import { InternalOptionProps, OptionGroupProps } from './OptionGroup.types'; export function InternalOptionGroup({ className, label, children, ...rest }: InternalOptionProps) { const { theme } = useDarkMode(); const colorSet = colorSets[theme].option; const groupId = useIdAllocator({ prefix: 'select-option-group' }); return (