open Signatures module Make = (Term: TERM, TermView: TERM_VIEW with module Term := Term) => { type props = {scope: array} @react.componentWithProps let make = props => { let arr = props.scope->Array.mapWithIndex((m, i) => {TermView.makeMeta(m)} ) Array.reverse(arr) if Array.length(arr) > 0 { {React.array(arr)} } else { React.null } } }