import {
Button,
ButtonProps,
Flex,
Text,
useColorMode,
} from "@chakra-ui/react";
import type { FunctionComponent } from "react";
import { DISCLAIMER, FOOTER_LINKS } from "./constants";
import testIds from "./testIds";
import { useShortBread } from "../../contexts/Shortbread";
import { SECTION_PADDING } from "../../views/Home/constants";
import { ExternalLink } from "../ExternalLink";
import { NavLink } from "../NavLink";
export interface FooterProps {}
const LinkButton: FunctionComponent<
ButtonProps & { "data-testid"?: string }
> = (props) => (
);
export const Footer: FunctionComponent = () => {
const { customizeCookies } = useShortBread();
const { colorMode, toggleColorMode } = useColorMode();
return (
{/* AWS Links */}
{Object.entries(FOOTER_LINKS).map(
([key, { display, isExternal = true, testId, url }]) => (
{isExternal ? (
{display}
) : (
{display}
)}
)
)}
{/* Manage Cookies / Color mode toggle */}
Manage Cookies
View in {colorMode === "light" ? "dark" : "light"} mode
{/* Disclaimer Text */}
{DISCLAIMER}
);
};