\n )\n }\n}\ntype LayoutProps = {\n children: Node,\n history: RouterHistory,\n match: {\n url: string,\n },\n}\n\n// NOTE: Update all matches to use this function\n/**\n *\n * @param {*} urlMatchArr - contains url split by '/'\n * @param {*} positions - array containing indices in urlMatchArr we want to check\n * @param {*} path - array containing path string to be matched with indices\n * @returns whether a url matches what we are expecting\n */\nconst matchUrl = (urlMatchArr, positions, paths) => {\n for (let i = 0; i < positions.length; i++) {\n if (urlMatchArr[positions[i]] !== paths[i]) {\n return false\n }\n }\n return true\n}\n\nclass Layout extends Component