+ {!resolver ? (
+
+
+ Could not load site schema.
+
+
+ ) : sections.length === 0 ? (
+
+ ) : (
+
+ {sections.map((section, idx) => (
+
+ setExpandedIndex(expandedIndex === idx ? null : idx)
+ }
+ ref={(el) => {
+ if (el) sectionRefs.current.set(idx, el);
+ else sectionRefs.current.delete(idx);
+ }}
+ />
+ ))}
+
+ )}
+