Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | import { StepRule } from "../../types";
import ConditionInputs from "./ConditionInputs";
import { RuleType } from "../common/Conditions/types";
import DeleteRuleButton from "../common/Conditions/DeleteRuleButton";
type StepConditionsPropTypes = {
rule: StepRule;
ruleIndex: number;
showDelete?: boolean;
};
function StepConditions({
showDelete = true,
...props
}: StepConditionsPropTypes) {
return (
<div className="mt-2 flex gap-2">
<ConditionInputs {...props} />
{showDelete && (
<DeleteRuleButton
ruleType={RuleType.STEP_RULE}
ruleIndex={props.ruleIndex}
/>
)}
</div>
);
}
export default StepConditions;
|