import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
const AccordionContext = createContext(null);
export function AccordionProvider(props) {
    const { children, qa, isLazy, size, isSeparated, titleStyles, contentStyles } = props;
    return (_jsx(AccordionContext.Provider, { value: { isLazy, qa, size, isSeparated, titleStyles, contentStyles }, children: children }));
}
export function useAccordionContext() {
    const context = useContext(AccordionContext);
    if (!context) {
        throw new Error('useAccordionContext must be used within a AccordionProvider');
    }
    return context;
}
//# sourceMappingURL=AccordionProvider.js.map