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 { Link as RouterLink, useRouteMatch } from "react-router-dom";
function GlobalFooter() {
const classicDTIUrl = useClassicDTIUrl();
return (
Terms of Use
Privacy Policy
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 itemPageMatch = useRouteMatch("/items/:itemId");
const userItemsPageMatch = useRouteMatch("/user/:userId/lists");
const modelingPageMatch = useRouteMatch("/modeling");
if (itemPageMatch) {
const { itemId } = itemPageMatch.params;
return `https://impress.openneo.net/items/${itemId}`;
}
if (userItemsPageMatch) {
const { userId } = userItemsPageMatch.params;
return `https://impress.openneo.net/user/${userId}/closet`;
}
if (modelingPageMatch) {
return "https://impress.openneo.net/modeling";
}
return "https://impress.openneo.net/";
}
export default GlobalFooter;