+
+ {
+ setSwitchOption(v);
+ // clear the other fields if the user selects a different option
+ if (v === "Component") {
+ values.config_id = null;
+ values.check_id = null;
+ values.canary_id = null;
+ }
+
+ if (v === "Catalog") {
+ values.component_id = null;
+ values.check_id = null;
+ values.canary_id = null;
+ }
+
+ if (v === "Check") {
+ values.component_id = null;
+ values.config_id = null;
+ values.canary_id = null;
+ }
+
+ if (v === "Canary") {
+ values.component_id = null;
+ values.config_id = null;
+ values.check_id = null;
+ }
+ }}
+ />
+
+ {switchOption === "Component" && (
+
+ )}
+ {switchOption === "Catalog" && (
+
+ )}
+ {switchOption === "Check" && (
+
+ )}
+ {switchOption === "Canary" && (
+
+ )}
+