import React, { ReactNode } from 'react'; import { cx } from '@emotion/css'; import { FooterProps, NavLink } from './footerProps'; import * as icons from '../Icons'; import { styFooterContainer, styFooterTop, styTitleDescContainer, styFooterTitle, styFooterDesc, styLinksContainer, styLinkHeading, styNavLinkContainer, stySocialMediaContainer, styCopyrightText, } from './styles'; const Footer: React.FC = ({ bgColor = '#111314', fontColor = '#FFFFFF', title = 'Technotic', description = 'Design smarter, not harder with Technotics powerful design system.', displayNavLinks1 = true, navLinksTitle1 = 'Explore', navLinks1 = [ { text: 'Home', href: '/' }, { text: 'About Us', href: '/' }, { text: 'Contact Us', href: '/' }, ], displayNavLinks2 = true, navLinksTitle2 = 'Resources', navLinks2 = [ { text: 'Documentation', href: '/' }, { text: 'Tutorial', href: '/' }, { text: 'Glossary', href: '/' }, ], displayNavLinks3 = true, navLinksTitle3 = 'Connect', navLinks3 = [ { text: 'Newsletter', href: '/' }, { text: 'Privacy Policy', href: '/' }, { text: 'Terms of Service', href: '/' }, ], socialMedia = { facebook: { username: 'Facebook', url: 'https://www.facebook.com', }, instagram: { username: 'Instagram', url: 'https://www.instagram.com', }, twitter: { username: 'Twitter', url: 'https://twitter.com', }, linkedin: { username: 'LinkedIn', url: 'https://www.linkedin.com', }, youtube: { username: 'YouTube', url: 'https://www.youtube.com', }, }, copyrightText = 'Copyright © 2023 Technotic. All rights reserved.', }) => { const renderNavLinks = ( navLinks: NavLink[], navLinksTitle: string ): ReactNode => (

{navLinksTitle}

{navLinks.map((navlink, index) => ( {navlink.text} ))}
); return ( ); }; export default Footer;