+ {Object.entries(resultsByRootId).map(([rootNodeId, results]) => (
+
+ ))}
+
+ )
+}
+
+function SearchResultGroup({ results }: { results: readonly Result[] }) {
+ const [first] = results
+
+ if (!first) return null
+
+ return (
+
+
+ {first.entry.rootNodeName} ({first.entry.rootNodeType} {first.entry.rootNode.id})
+
+
+ {results.map(result => (
+
+ ))}
+
+
+ )
+}
+
+function SearchResult({ result }: { result: Result }) {
+ if (result.type === "CollectionItem") {
+ return