/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-9f08182
 * Released under the MIT license.
 */

import React from 'react';
export const SubmenuTriggerContext = React.createContext(null);
export function useSubmenuTriggerContext() {
    const context = React.useContext(SubmenuTriggerContext);
    if (!context) {
        throw new Error('useSubmenuTriggerContext must be used within a SubmenuTriggerContext.Provider');
    }
    return context;
}

        