From e8a61bd7e49bf2a24fa1905a45e83380056a7368 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 13 Dec 2021 22:52:24 +0100
Subject: chore: add footer nav

---
 src/components/FooterNav/FooterNav.tsx | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 src/components/FooterNav/FooterNav.tsx

(limited to 'src/components/FooterNav/FooterNav.tsx')

diff --git a/src/components/FooterNav/FooterNav.tsx b/src/components/FooterNav/FooterNav.tsx
new file mode 100644
index 0000000..7266e7e
--- /dev/null
+++ b/src/components/FooterNav/FooterNav.tsx
@@ -0,0 +1,25 @@
+import Link from 'next/link';
+import styles from './FooterNav.module.scss';
+import { footerNav } from '@config/nav';
+
+const FooterNav = () => {
+  const navItems = footerNav.map((item) => {
+    return (
+      <li key={item.id} className={styles.item}>
+        <Link href={item.slug}>
+          <a className={styles.link}>{item.name}</a>
+        </Link>
+      </li>
+    );
+  });
+
+  return (
+    <div className={styles.wrapper}>
+      <nav className={styles.nav}>
+        <ul className={styles.list}>{navItems}</ul>
+      </nav>
+    </div>
+  );
+};
+
+export default FooterNav;
-- 
cgit v1.2.3

