diff --git a/src/admin/automations/automations-form/automations-rules-form/index.tsx b/src/admin/automations/automations-form/automations-rules-form/index.tsx
index 48a8fa1..9e592d7 100644
--- a/src/admin/automations/automations-form/automations-rules-form/index.tsx
+++ b/src/admin/automations/automations-form/automations-rules-form/index.tsx
@@ -1,10 +1,9 @@
-import { Label, Select, Button } from "@medusajs/ui"
+import { Button } from "@medusajs/ui"
import { useAvailableEvents } from "../../../../hooks/api/available-events"
-import { OPERATOR_TYPES } from "../../../../modules/mpn-automation/types/types"
-import { Controller, useFieldArray } from "react-hook-form"
+import { useFieldArray } from "react-hook-form"
import { useMemo } from "react"
-import { Trash, Plus } from "@medusajs/icons"
-import { RuleValueInput } from "./rule-value-input"
+import { Plus } from "@medusajs/icons"
+import { RuleItem } from "./rule-item"
export function AutomationsRulesForm({
form,
@@ -76,116 +75,13 @@ export function AutomationsRulesForm({
)}
{fields.map((field, index) => (
-
-
-
- (
- <>
-
-
- {fieldState.error && (
-
- {fieldState.error.message}
-
- )}
- >
- )}
- />
- (
- <>
-
-
- {fieldState.error && (
-
- {fieldState.error.message}
-
- )}
- >
- )}
- />
-
-
-
-
-
+ control={form.control}
+ index={index}
+ eventAttributes={eventAttributes}
+ onRemove={() => handleRemoveRule(index)}
+ />
))}