- >
- ) : type === "textarea" ? (
- <>
- {label && (
-
+ {currentPageIdx ===
+ schema.pages.findIndex((p: any) => p.name === pageName) && (
+
+ {type === 'cards' ? (
+
+ ) : type === 'checkbox' ? (
+
+ ) : type === 'email' ? (
+
+ ) : type === 'number' ? (
+
+ ) : type === 'phone' ? (
+
+ ) : type === 'radio' ? (
+
+ ) : type === 'submit' ? (
+
+ ) : type === 'button-link' ? (
+
+ ) : type === 'text' ? (
+
+ ) : type === 'textarea' ? (
+
+ ) : type === 'website' ? (
+
+ ) : null}
+ {!['submit', 'button-link'].includes(type) ? (
+ <>
+
+
+ >
+ ) : (
+ <>>
)}
-
- >
- ) : null}
+