import type { NextPage } from "next"; import Lottie from "react-lottie"; import Image from "next/image"; import { MutableRefObject, useRef, useState } from "react"; const Footer: NextPage = () => { const playAnimation = (ref: any) => { if (ref?.current) { ref.current.play() } } const [isPause, setIsPause] = useState(true) const [isStopped, setIsStopped] = useState(true) const contactLinks = [ { href: "https://github.com/amirmoghi3", label: "Github", icon: require("assets/json/github.json"), path: "assets/json/github.json", ref: useRef(null) }, { href: "https://www.linkedin.com/in/amirmoghi3/", label: "LinkedIn", icon: require("assets/json/linkedin.json"), path: "assets/json/linkedin.json", ref: useRef(null) }, { href: "https://www.instagram.com/amirmoghi3/", label: "Instagram", icon: require("assets/json/instagram.json"), path: "assets/json/instagram.json", ref: useRef(null) }, { href: "https://twitter.com/amirmoghi3", label: "Twitter", icon: require("assets/json/twitter.json"), path: "assets/json/twitter.json", ref: useRef(null) }, { // email href: "mailto:siramirmoghi3@gmail.com", label: "Email", icon: require("assets/images/email.png"), }, { //discord href: "https://discord.gg/FeECbW766J", label: "Discord", icon: require("assets/json/discord.json"), path: "assets/json/discord.json", ref: useRef(null) } ] return (
{ contactLinks.map(contactLink => ( playAnimation(contactLink.ref)} href={contactLink.href} target="_blank" key={contactLink.href} className="px-2 cursor-pointer" rel="noreferrer" > { contactLink.path ?
: (
{contactLink.label}
) }
)) }

@2020 Lord (Arbab) Amir Hossein Moghiseh - Bondman (raiiat) masoomi pour @hossein_masoomi - All Rights Reserved - Version {process.env.NEXT_PUBLIC_VERSION}

) } export default Footer;