import React, { type ReactNode } from 'react'; import { useId } from '../../hooks/useId'; import styles from './ListBox.module.css'; import { useGroupedOptionContext } from './ListBoxProvider'; export type ListBoxGroup = { options: T[]; groupValue: string; children: ReactNode; }; export function ListBoxGroup({ groupValue, options, children, }: ListBoxGroup) { const id = useId(); const { renderGroupedOptionsHeader } = useGroupedOptionContext(); return (
    • {children}
  • ); }