@cfxlabsinc/b2b-services
    Preparing search index...
    ApprovalRuleForm: React.FC<
        {
            action: ApprovalRuleFormAction;
            cancelHref: string;
            initialState?: ApprovalRuleFormState;
            initialValues?: ApprovalRuleFormValues;
            options: ApprovalRuleFormOptions;
            ruleId?: string;
        },
    > = ...

    Create or edit one approval rule. It renders what it is given and posts FormData; every eligibility decision, including the unsatisfiable warning, comes back from the server in the action's state.

    FormData fields: id (edit only), name, minAmountUsd, repeated productId and category, stepCount, and per step N the repeated step.N.roleId and step.N.userId.