({ track, chooseTrack })
| 1 | import React from "react" |
| 2 | |
| 3 | export default function TrackSearchResult({ track, chooseTrack }) { |
| 4 | function handlePlay() { |
| 5 | chooseTrack(track) |
| 6 | } |
| 7 | |
| 8 | return ( |
| 9 | <div |
| 10 | className="d-flex m-2 align-items-center" |
| 11 | style={{ cursor: "pointer" }} |
| 12 | onClick={handlePlay} |
| 13 | > |
| 14 | <img src={track.albumUrl} style={{ height: "64px", width: "64px" }} /> |
nothing calls this directly
no outgoing calls
no test coverage detected