/**
 * Suggestions Context
 *
 * Type definitions and React context for composable suggestions primitives.
 * Consuming components use useSuggestionsContext() for state and actions.
 */
import { createContext, useContext } from 'react';
import { log } from '@seekora-ai/ui-sdk-core';
export const SuggestionsContext = createContext(null);
export function useSuggestionsContext() {
    const context = useContext(SuggestionsContext);
    if (!context) {
        const error = new Error('useSuggestionsContext must be used within a SuggestionsProvider');
        log.error('SuggestionsContext: not available', { error: error.message });
        throw error;
    }
    return context;
}
