({ shipName }: { shipName: string })
| 131 | } |
| 132 | |
| 133 | function ShipError({ shipName }: { shipName: string }) { |
| 134 | return ( |
| 135 | <div className="ship-info"> |
| 136 | <div className="ship-info__img-wrapper"> |
| 137 | <img src="/img/broken-ship.webp" alt="broken ship" /> |
| 138 | </div> |
| 139 | <section> |
| 140 | <h2>There was an error</h2> |
| 141 | </section> |
| 142 | <section>There was an error loading "{shipName}"</section> |
| 143 | </div> |
| 144 | ) |
| 145 | } |
| 146 | |
| 147 | const rootEl = document.createElement('div') |
| 148 | document.body.append(rootEl) |
nothing calls this directly
no outgoing calls
no test coverage detected