import { createContext, useContext } from "solid-js";
export const AccordionPanelContext = createContext(undefined);
export function useAccordionPanelContext() {
    const context = useContext(AccordionPanelContext);
    if (!context) {
        throw new Error("useAccordionPanelContext should be used within the AccordionPanelContext provider!");
    }
    return context;
}
