/// import { recipe, UI } from "commontools"; interface State { sortedTags: string[]; tagCounts: Record; } export default recipe("MapElementAccessOpaque", (state) => { return { [UI]: ( {state.sortedTags.map((tag) => ( {tag}: {state.tagCounts[tag]} ))} ), }; });