import React from "react";
import {
Box,
IconButton,
HStack,
Link as ChakraLink,
Tooltip,
useColorMode,
Grid,
} from "@chakra-ui/react";
import { EmailIcon, MoonIcon, SunIcon } from "@chakra-ui/icons";
import { SiGithub, SiTwitter } from "react-icons/si";
import { useRouter } from "next/router";
import Link from "next/link";
function GlobalFooter() {
const classicDTIUrl = useClassicDTIUrl();
return (
Terms of Use (Sep 2022)
Privacy Policy (Sep 2022)
Donors
Classic DTI
Images © 2000–{new Date().getFullYear()} Neopets, Inc. All Rights
Reserved. Used With Permission.
}
/>
}
/>
}
/>
);
}
function ColorModeButton() {
const { colorMode, toggleColorMode } = useColorMode();
const label = colorMode === "light" ? "Dark mode" : "Light mode";
return (
: }
onClick={toggleColorMode}
/>
);
}
function useClassicDTIUrl() {
const { pathname, query } = useRouter();
if (pathname === "/items/[itemId]") {
return `https://impress.openneo.net/items/${query.itemId}`;
}
if (pathname === "/user/[userId]/lists") {
return `https://impress.openneo.net/user/${query.userId}/closet`;
}
if (pathname === "/modeling") {
return "https://impress.openneo.net/modeling";
}
return "https://impress.openneo.net/";
}
export default GlobalFooter;