/**
 * 动作计算 Hook
 * 计算组件中各种动作相关的布尔值和计数
 */ export var useMarkdownInputFieldActions = function(props) {
    var _props_enlargeable, _props_refinePrompt;
    var hasEnlargeAction = !!(props === null || props === void 0 ? void 0 : (_props_enlargeable = props.enlargeable) === null || _props_enlargeable === void 0 ? void 0 : _props_enlargeable.enable);
    var hasRefineAction = !!(props === null || props === void 0 ? void 0 : (_props_refinePrompt = props.refinePrompt) === null || _props_refinePrompt === void 0 ? void 0 : _props_refinePrompt.enable);
    var hasCustomQuickAction = !!(props === null || props === void 0 ? void 0 : props.quickActionRender);
    var hasActionsRender = !!(props === null || props === void 0 ? void 0 : props.actionsRender);
    var hasToolsRender = !!(props === null || props === void 0 ? void 0 : props.toolsRender);
    var quickActionCount = Number(hasEnlargeAction) + Number(hasRefineAction) + Number(hasCustomQuickAction);
    var auxiliaryActionCount = Number(hasActionsRender) + Number(hasToolsRender);
    var totalActionCount = quickActionCount + auxiliaryActionCount;
    // 是否需要多行布局
    var isMultiRowLayout = totalActionCount > 0;
    return {
        hasEnlargeAction: hasEnlargeAction,
        hasRefineAction: hasRefineAction,
        hasCustomQuickAction: hasCustomQuickAction,
        hasActionsRender: hasActionsRender,
        hasToolsRender: hasToolsRender,
        quickActionCount: quickActionCount,
        auxiliaryActionCount: auxiliaryActionCount,
        totalActionCount: totalActionCount,
        isMultiRowLayout: isMultiRowLayout
    };
};
