import type { ItemState } from '@zag-js/combobox'
import type { Accessor } from 'solid-js'
import { createContext } from '../../utils/create-context.ts'

export interface UseComboboxItemContext extends Accessor<ItemState> {}

export const [ComboboxItemProvider, useComboboxItemContext] = createContext<UseComboboxItemContext>({
  hookName: 'useComboboxItemContext',
  providerName: '<ComboboxItemProvider />',
})
