+ {if showHeading {
+
+ {React.string(title)}
+
+ } else {
+ React.null
+ }}
+
{renderTags(items)}
+
->Some
}
- })
+
+ let renderSection = (title, subsections) => {
+ let subsections =
+ subsections->Array.filterMap(((subtitle, items)) =>
+ renderSubsection(~showHeading=subtitle !== title, subtitle, items)
+ )
+ if Array.length(subsections) === 0 {
+ None
+ } else {
+