(t: string)
| 1078 | if (!/^<\s*[A-Z]/.test(inner)) return undefined; |
| 1079 | const { own, props } = elementTags(inner); |
| 1080 | const content = (t: string): boolean => !WRAPPER.test(t) && t !== 'Outlet'; |
| 1081 | // Then a page handed to a guard as a prop (`<PrivateRoute component={<Profile />} />`), |
| 1082 | // then the innermost wrapper: `<RequireAuth><Outlet /></RequireAuth>` renders the guard. |
| 1083 | return own.find(content) ?? props.find(content) ?? [...own].reverse().find((t) => t !== 'Outlet') ?? own[0]; |
nothing calls this directly
no outgoing calls
no test coverage detected