({ launch })
| 19 | } |
| 20 | |
| 21 | const LaunchTile: React.FC<LaunchTileProps> = ({ launch }) => { |
| 22 | const { id, mission, rocket } = launch; |
| 23 | return ( |
| 24 | <StyledLink |
| 25 | to={`/launch/${id}`} |
| 26 | style={{ |
| 27 | backgroundImage: getBackgroundImage(id), |
| 28 | }} |
| 29 | > |
| 30 | <h3>{mission ? mission.name : ''}</h3> |
| 31 | <h5>{rocket && rocket.name}</h5> |
| 32 | </StyledLink> |
| 33 | ); |
| 34 | }; |
| 35 | |
| 36 | export default LaunchTile; |
| 37 |
nothing calls this directly
no test coverage detected