import { type Accessor, createContext, useContext } from "solid-js"; export interface ComboboxGroupContextValue { labelId: Accessor; setLabelId: (id: string | undefined) => void; } export const ComboboxGroupContext = createContext(null); export function useComboboxGroupContext(): ComboboxGroupContextValue { const ctx = useContext(ComboboxGroupContext); if (ctx == null) { throw new Error( "Base UI: ComboboxGroupContext is missing. must be placed inside .", ); } return ctx; }