diff --git a/src/app/track.tsx b/src/app/track.tsx index fed17b5..b868428 100644 --- a/src/app/track.tsx +++ b/src/app/track.tsx @@ -1,13 +1,15 @@ import * as Spotify from "spotify-api.js"; +import { DispatchWithoutAction } from "react"; import styles from "./track.module.css"; interface Props { track: Spotify.Track; + onClick?: DispatchWithoutAction; } -export default function TrackCover({ track }: Props) { +export default function TrackCover({ track, onClick }: Props) { return ( -