-
-
-
-
- {t("aiBudgetUnit")}
-
-
- {t("aiBudgetPeriod")}
-
-
- {t("aiBudgetAmount")}
-
-
-
-
-
- {rows.length === 0 ? (
-
- ) : (
- rows.map((row) => {
- const showConflict =
- conflictingKeys.has(
- row.key
- );
- const showInvalidAmount =
- attemptedSave &&
- invalidAmountKeys.has(
- row.key
- );
- return (
-
-
-
+
+
+
+
+
+
+
+ );
+ })
+ )}
+
+
+ {(conflictingKeys.size > 0 ||
+ (attemptedSave && invalidAmountKeys.size > 0)) && (
+
+ {conflictingKeys.size > 0
+ ? t("aiBudgetConflictError")
+ : t("aiBudgetInvalidAmountError")}
+
+ )}
+ {rows.length > 0 && addRowButton}
+