/** @license MIT | @cube-dev/ui-kit v0.123.0 | Cube Dev Team */
import { createContext, useContext } from "react";
import { jsx } from "react/jsx-runtime";

//#region src/components/actions/ItemActionContext.tsx
const ItemActionContext = createContext(void 0);
function ItemActionProvider({ type, theme, disableActionsFocus, isDisabled, children }) {
	return /* @__PURE__ */ jsx(ItemActionContext.Provider, {
		value: {
			type: type === "item" || type === "outline" || type === "header" || type === "card" ? "neutral" : type === "secondary" ? "clear" : type,
			theme,
			disableActionsFocus,
			isDisabled
		},
		children
	});
}
function useItemActionContext() {
	return useContext(ItemActionContext) ?? {};
}

//#endregion
export { ItemActionProvider, useItemActionContext };
//# sourceMappingURL=ItemActionContext.js.map