/**
 * SectionSearchContext – preset query/filter section state
 *
 * For menus, sidebar, front-page blocks. Independent of main search state.
 */
import { createContext, useContext } from 'react';
import { log } from '@seekora-ai/ui-sdk-core';
export const SectionSearchContext = createContext(null);
export function useSectionSearchContext() {
    const context = useContext(SectionSearchContext);
    if (!context) {
        const error = new Error('useSectionSearchContext must be used within a SectionSearchProvider');
        log.error('SectionSearchContext: not available', { error: error.message });
        throw error;
    }
    return context;
}
