+ {collections.length > 0 ? (
+
+ {collections.map(collection => (
+ void handleCollectionClick(collection.id)}
+ >
+
+ {collection.name}
+
+ ))}
+
+ ) : (
+
+
+ No HubSpot collections yet. Create one to get started.
+
+
+ )}
+
+
+
+
+
+
+ )
+}
+
+async function findAvailableCollectionName(baseName: string): Promise