()
| 151 | }) |
| 152 | |
| 153 | function PathlessLayout2Component() { |
| 154 | return ( |
| 155 | <div> |
| 156 | <div>I'm a nested pathless layout</div> |
| 157 | <div className="flex gap-2 border-b"> |
| 158 | <Link |
| 159 | to="/route-a" |
| 160 | activeProps={{ |
| 161 | className: 'font-bold', |
| 162 | }} |
| 163 | > |
| 164 | Go to Route A |
| 165 | </Link> |
| 166 | <Link |
| 167 | to="/route-b" |
| 168 | activeProps={{ |
| 169 | className: 'font-bold', |
| 170 | }} |
| 171 | > |
| 172 | Go to Route B |
| 173 | </Link> |
| 174 | </div> |
| 175 | <div> |
| 176 | <Outlet /> |
| 177 | </div> |
| 178 | </div> |
| 179 | ) |
| 180 | } |
| 181 | |
| 182 | const pathlessLayoutARoute = createRoute({ |
| 183 | getParentRoute: () => nestedPathlessLayout2Route, |
nothing calls this directly
no outgoing calls
no test coverage detected