import React from "react"; import ReadmeImg from "./ReadmeImg"; import Text from "./Text"; export interface Props { cover?: string; track: string; artist: string; progress: number; duration: number; isPlaying: boolean; } export const Player: React.FC = ({ cover, track, artist, progress, duration, isPlaying, }) => { return (
{`${track ?? ""} `.trim()} {artist || "Nothing playing..."} {track && (
)}
); };