import { createSafeContext } from "./index21.js";
import * as React from "react";
//#region src/components/organisms/ai/_shared/interaction-context.ts
var [AIInteractionContext, useAIInteraction] = createSafeContext("AIInteractionProvider");
/**
* Provider component that enables AI interactive components to communicate
* user interactions back to the parent application.
*/
function AIInteractionProvider({ children, onInteraction }) {
	const value = React.useMemo(() => ({ onInteraction }), [onInteraction]);
	return React.createElement(AIInteractionContext.Provider, { value }, children);
}
AIInteractionProvider.displayName = "AIInteractionProvider";
//#endregion
export { AIInteractionContext, AIInteractionProvider, useAIInteraction };

//# sourceMappingURL=index407.js.map