ported back condition editor
This commit is contained in:
1 parent
59542abad7
commit
6e8e409a89
11 files changed
+1134
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { FC } from "react";
|
||||
import { AutomationCondition } from "types/automations/conditions";
|
||||
import { ConditionNode } from "./ConditionNode";
|
||||
|
||||
|
||||
|
||||
|
||||
export const ConditionEditor: FC<{
|
||||
condition: AutomationCondition;
|
||||
onDelete: (which: 'root' | number) => void;
|
||||
onUpdate: (data: AutomationCondition) => void;
|
||||
}> = ({
|
||||
condition,
|
||||
onDelete,
|
||||
onUpdate,
|
||||
}) => {
|
||||
// state
|
||||
return <ConditionNode
|
||||
condition={condition}
|
||||
onDelete={onDelete}
|
||||
onUpdate={update => {
|
||||
onUpdate(update)
|
||||
}}
|
||||
displayMode
|
||||
showDelete
|
||||
/>
|
||||
}
|
||||
Reference in new issue
Block a user