()
| 185 | }) |
| 186 | |
| 187 | function Layout2Component() { |
| 188 | return ( |
| 189 | <div> |
| 190 | <div>I'm a nested layout</div> |
| 191 | <div class="flex gap-2 border-b"> |
| 192 | <Link |
| 193 | to="/layout-a" |
| 194 | activeProps={{ |
| 195 | class: 'font-bold', |
| 196 | }} |
| 197 | > |
| 198 | Layout A |
| 199 | </Link> |
| 200 | <Link |
| 201 | to="/layout-b" |
| 202 | activeProps={{ |
| 203 | class: 'font-bold', |
| 204 | }} |
| 205 | > |
| 206 | Layout B |
| 207 | </Link> |
| 208 | </div> |
| 209 | <div> |
| 210 | <Outlet /> |
| 211 | </div> |
| 212 | </div> |
| 213 | ) |
| 214 | } |
| 215 | |
| 216 | const layoutARoute = createRoute({ |
| 217 | getParentRoute: () => layout2Route, |
nothing calls this directly
no outgoing calls
no test coverage detected