const PatternOptions = (props) => { return null const renderOptions = () => { const groups = optionGroups[props.pattern] const list = [] for (let l1 in groups) { let children = [] for (let l2 of groups[l1]) { if (typeof l2 === 'string') { children.push(