export const mapCollections = (collections) => collections.map((collection) => typeof collection === "string"
? collection
: {
name: collection.name,
view_properties: collection.viewProperties,
target_vector: collection.targetVector,
tenant: collection.tenant,
});