import Image from 'next/image'; import Link from 'next/link'; import React from 'react'; import useSWR from 'swr'; import FadeIn from 'react-fade-in'; import { socials } from 'components/data/socials'; import { Icon } from 'components/Icon'; import { Toaster } from 'react-hot-toast'; import { FaSpotify } from 'react-icons/fa'; import profilePic from 'public/profile.webp'; export const fetcher = (url: RequestInfo) => fetch(url).then((r) => r.json()); export default function Main() { var { data: spotify } = useSWR('/api/spotify', fetcher, { refreshInterval: 3000, fallbackData: 'loading', }); return (
Profile Picture

albert {Math.floor( (new Date().getTime() - new Date('2004-07-22').getTime()) / (1000 * 60 * 60 * 24 * 365.25) )}

Systems Administrator


Listening to{' '} {spotify.song ? ( {' '} {spotify.song.title} ) : ( nothing )}

{socials.map((social) => ( {React.createElement(social.icon)} ))}
); }