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(
  • ) } else { for (let l3 in l2) { let grandchildren = [] for (let l4 of l2[l3]) { grandchildren.push(
  • ) } children.push(
  • ) } } } list.push(
  • ) } return } return renderOptions() } export default PatternOptions