import { createContext, useContext, } from "react";
export const SettingsHeaderActionsContext = createContext(null);
export function useSettingsHeaderActions() {
    return useContext(SettingsHeaderActionsContext);
}
export function useRequiredSettingsHeaderActions() {
    const setter = useContext(SettingsHeaderActionsContext);
    if (!setter) {
        throw new Error("useRequiredSettingsHeaderActions must be used inside SettingsHeaderActionsContext.Provider");
    }
    return setter;
}
export const SettingsBreadcrumbItemsContext = createContext(null);
export function useSettingsBreadcrumbItems() {
    return useContext(SettingsBreadcrumbItemsContext);
}
export function useRequiredSettingsBreadcrumbItems() {
    const setter = useContext(SettingsBreadcrumbItemsContext);
    if (!setter) {
        throw new Error("useRequiredSettingsBreadcrumbItems must be used inside SettingsBreadcrumbItemsContext.Provider");
    }
    return setter;
}
export const SettingsMainContentRefContext = createContext(null);
export function useRequiredSettingsMainContentRef() {
    const mainContentRef = useContext(SettingsMainContentRefContext);
    if (!mainContentRef) {
        throw new Error("useRequiredSettingsMainContentRef must be used inside SettingsMainContentRefContext.Provider");
    }
    return mainContentRef;
}
//# sourceMappingURL=SettingsHeaderActionsContext.js.map