MCPcopy Create free account
hub / github.com/epicweb-dev/react-suspense / ShipError

Function ShipError

exercises/04.image/02.problem.error/index.tsx:131–143  ·  view source on GitHub ↗
({ shipName }: { shipName: string })

Source from the content-addressed store, hash-verified

129}
130
131function ShipError({ shipName }: { shipName: string }) {
132 return (
133 <div className="ship-info">
134 <div className="ship-info__img-wrapper">
135 <img src="/img/broken-ship.webp" alt="broken ship" />
136 </div>
137 <section>
138 <h2>There was an error</h2>
139 </section>
140 <section>There was an error loading "{shipName}"</section>
141 </div>
142 )
143}
144
145// 🐨 create a ShipImg component which accepts all the props of a regular img
146// element (🦺 React.ComponentProps<'img'>) and it should forward all props to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected