MCPcopy Index your code
hub / github.com/WebDevSimplified/spotify-clone / TrackSearchResult

Function TrackSearchResult

client/src/TrackSearchResult.js:3–11  ·  view source on GitHub ↗
({ track, chooseTrack })

Source from the content-addressed store, hash-verified

1import React from "react"
2
3export 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" }} />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected