"use client"; import { authClient } from "@/lib/auth-client"; import websites from "@/lib/websites"; import Image from "next/image"; import { useState } from "react"; 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 [isBunny, setIsBunny] = useState(false); const { data: session, isPending, error } = authClient.useSession(); const { data, isLoading } = useSWR("/api/lastfm", fetcher, { refreshInterval: 5000, }); const jsonLd = { "@context": "https://schema.org", "@type": "WebSite", name: "Nikola Kubiczek", url: "https://www.yaemiku.dev/", }; return (