({ shipName }: { shipName: string })
| 94 | } |
| 95 | |
| 96 | function ShipFallback({ shipName }: { shipName: string }) { |
| 97 | return ( |
| 98 | <div className="ship-info"> |
| 99 | <div className="ship-info__img-wrapper"> |
| 100 | <img src="/img/fallback-ship.png" alt={shipName} /> |
| 101 | </div> |
| 102 | <section> |
| 103 | <h2> |
| 104 | {shipName} |
| 105 | <sup> |
| 106 | XX <small>lyh</small> |
| 107 | </sup> |
| 108 | </h2> |
| 109 | </section> |
| 110 | <section> |
| 111 | <ul> |
| 112 | {Array.from({ length: 3 }).map((_, i) => ( |
| 113 | <li key={i}> |
| 114 | <label>loading</label>:{' '} |
| 115 | <span> |
| 116 | XX <small>(loading)</small> |
| 117 | </span> |
| 118 | </li> |
| 119 | ))} |
| 120 | </ul> |
| 121 | </section> |
| 122 | </div> |
| 123 | ) |
| 124 | } |
| 125 | |
| 126 | function ShipError({ shipName }: { shipName: string }) { |
| 127 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected