-
- {/* eslint-disable-next-line @next/next/no-img-element */}
-

{
- e.currentTarget.style.display = 'none';
- }}
- />
-
-
- {callbackConfig.displayName}
-
+ {CALLBACK_CONFIGS.map((callbackConfig) => (
+
+
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+

{
+ e.currentTarget.style.display = "none";
+ }}
+ />
-
- ))}
-
-
+
{callbackConfig.displayName}
+
+
+ ))}
+
+
- {selectedCallbackParams && selectedCallbackParams.length > 0 && (
-
- {selectedCallbackParams.map((param) => {
- // Get the callback configuration to look up parameter types
- const callbackConfig = getCallbackById(selectedCallback || '');
- const paramType = callbackConfig?.dynamic_params[param] || "text";
-
- const fieldLabel = param.replace(/_/g, " ").replace(/\b\w/g, l => l.toUpperCase());
-
- return (
-
- {fieldLabel}
- *
-
- }
- name={param}
- key={param}
- className="mb-4"
- rules={[
- {
- required: true,
- message: `Please enter the ${fieldLabel.toLowerCase()}`,
- },
- ]}
- >
- {paramType === "password" ? (
-
- ) : paramType === "number" ? (
-
- ) : (
-
- )}
-
- );
- })}
-
- )}
+ {selectedCallbackParams && selectedCallbackParams.length > 0 && (
+