({ launch }: any)
| 13 | } |
| 14 | |
| 15 | const LaunchTile = ({ launch }: any) => { |
| 16 | const { id, mission, rocket } = launch; |
| 17 | return ( |
| 18 | <StyledLink |
| 19 | to={`/launch/${id}`} |
| 20 | style={{ |
| 21 | backgroundImage: getBackgroundImage(id), |
| 22 | }} |
| 23 | > |
| 24 | <h3>{mission.name}</h3> |
| 25 | <h5>{rocket.name}</h5> |
| 26 | </StyledLink> |
| 27 | ); |
| 28 | }; |
| 29 | |
| 30 | export default LaunchTile |
| 31 |
nothing calls this directly
no test coverage detected