import { createContext } from '../../utils/create-context.ts'
import type { UseCollapsibleReturn } from './use-collapsible.ts'

export interface UseCollapsibleContext extends UseCollapsibleReturn {}

export const [CollapsibleProvider, useCollapsibleContext] = createContext<UseCollapsibleContext>({
  hookName: 'useCollapsibleContext',
  providerName: '<CollapsibleProvider />',
})
