+ {plugins.map(plugin => {
+ const isInstalled = plugin.repositoryUrl
+ ? installedSet.has(normalizeRepoUrl(plugin.repositoryUrl))
+ : false;
+ const daydreamUrl =
+ plugin.creatorUsername && plugin.slug
+ ? `${DAYDREAM_APP_BASE}/plugins/${plugin.creatorUsername}/${plugin.slug}`
+ : plugin.learnMoreUrl ||
+ `${DAYDREAM_APP_BASE}/plugins?search=${encodeURIComponent(plugin.name)}`;
+ return (
+
+ {plugin.iconUrl ? (
+

+ ) : (
+
+
+ {plugin.name.charAt(0).toUpperCase()}
+
+
+ )}
+
+
+
+ {plugin.name}
+
+ {plugin.version && (
+
+ v{plugin.version}
+
+ )}
+
+ {plugin.description && (
+
+ {plugin.description}
+
+ )}
+ {plugin.tags.length > 0 && (
+
+ {plugin.tags.slice(0, 4).map(tag => (
+
+ {tag}
+
+ ))}
+
+ )}
+
+
+
+ {plugin.repositoryUrl && (
+
+ )}
+ {isInstalled ? (
+
+ Installed
+
+ ) : plugin.repositoryUrl ? (
+
+ ) : null}
+
+