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