1 | export default function findFocusedRoute(state) {
|
2 | var _current2, _current$index3, _current3;
|
3 |
|
4 | let current = state;
|
5 |
|
6 | while (((_current = current) === null || _current === void 0 ? void 0 : _current.routes[(_current$index = current.index) !== null && _current$index !== void 0 ? _current$index : 0].state) != null) {
|
7 | var _current, _current$index, _current$index2;
|
8 |
|
9 | current = current.routes[(_current$index2 = current.index) !== null && _current$index2 !== void 0 ? _current$index2 : 0].state;
|
10 | }
|
11 |
|
12 | const route = (_current2 = current) === null || _current2 === void 0 ? void 0 : _current2.routes[(_current$index3 = (_current3 = current) === null || _current3 === void 0 ? void 0 : _current3.index) !== null && _current$index3 !== void 0 ? _current$index3 : 0];
|
13 | return route;
|
14 | }
|
15 |
|
\ | No newline at end of file |