'use client'; import Image from 'next/image'; import useSWR, { Fetcher } from 'swr'; type LastFM = { artist: { '#text': string }; image: [{ size: string; '#text': string }]; mbid: string; album: { mbid: string; '#text': string; }; name: string; '@attr': { nowplaying: string }; url: string; }; const fetcher: Fetcher = (...args) => fetch(...args).then((res) => res.json()); export default function Home() { const { data, isLoading } = useSWR('/api/lastfm', fetcher, { refreshInterval: 5000, }); const jsonLd = { '@context': 'https://schema.org', '@type': 'WebSite', name: 'Nikola Kubiczek', url: 'https://yaemiku.dev/', }; return (