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

import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
const ItemActionContext = createContext(undefined);
export function ItemActionProvider({ type, theme, disableActionsFocus, isDisabled, children, }) {
    return (_jsx(ItemActionContext.Provider, { value: {
            type: type === 'item' ||
                type === 'outline' ||
                type === 'header' ||
                type === 'card'
                ? 'neutral'
                : type === 'secondary'
                    ? 'clear'
                    : type,
            theme,
            disableActionsFocus,
            isDisabled,
        }, children: children }));
}
export function useItemActionContext() {
    return useContext(ItemActionContext) ?? {};
}

        