import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faEnvelope } from '@fortawesome/free-regular-svg-icons' import { faPhone, faMusic } from '@fortawesome/free-solid-svg-icons' import { faXTwitter, faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons' import { useState, useEffect } from 'react'; import Logo from "./Logo" interface NowPlaying { album?: string artist?: string isPlaying: boolean title?: string link?: string album_art?: string } export default function Card() { const [np, setNp] = useState(); useEffect(() => { fetch( "https://vercel-spotify-api.vercel.app/api/Spotify" ) .then(res => res.json()) .then(data => { if (data) { setNp(data) } }) }, []) return ( <>

{np && np.isPlaying &&

{np.artist}

{np.title}

}

{" "} i@yude.jp

{" "} @yude_jp

{" "} yude

{" "} yude

) }