import React, { useMemo } from "react"; /* -------------------------------------------------------------------------- */ /* Import Components */ /* -------------------------------------------------------------------------- */ import Typography from "components/typography/Typography"; import { SVGFacebook, SVGInstagram, SVGCircle } from "components/icons"; import { RouterLink } from "components/typography/RouterLink"; import Link from "components/typography/Link"; /* -------------------------------------------------------------------------- */ /* Define consts */ /* -------------------------------------------------------------------------- */ const mainLinks = [ { label: "account settings", url: "/account/settings", enabled: true }, { label: "about freeland", url: "/about", enabled: true }, { label: "help", url: "/help", enabled: true }, { label: "contact us", url: "/contact-us", enabled: true }, ]; const secondaryLinks = [ { index: 1, label: "Terms of Use", url: "/terms-of-use", enabled: true }, { index: 2, label: "Privacy Policy", url: "/privacy-policy", enabled: true }, { index: 3, label: "Cookies Policy", url: "/cookies-policy", enabled: true }, ]; /* -------------------------------------------------------------------------- */ /* Difine parts of footer */ /* -------------------------------------------------------------------------- */ /* -------------------- Icons with social networks icons -------------------- */ const circleDivider = ( ); /* -------------------------------------------------------------------------- */ /* Define component footer */ /* -------------------------------------------------------------------------- */ export function Footer() { /* -------------------------- Part with main links -------------------------- */ const mainLinksPart = useMemo( () => mainLinks.map((link) => ( {link.label.toUpperCase()} )), mainLinks ); /* ------------------------ Part with secondary links ----------------------- */ const secondaryLinksPart = useMemo( () => secondaryLinks.map((link) => (
{link.index != 1 && circleDivider} {link.label}
)), secondaryLinks ); /* -------------------------------------------------------------------------- */ /* Implement footer component */ /* -------------------------------------------------------------------------- */ return (
Freeland
{mainLinksPart}
{" "}
@ Copyright 2022 Freeland - All rights reserved
{circleDivider}
{secondaryLinksPart}
Supported by Comfortel
); }