mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-11-11 05:56:40 +01:00
27 lines
603 B
TypeScript
27 lines
603 B
TypeScript
import { Link } from "gatsby";
|
|
import React from "react";
|
|
import * as styles from "./Menu.module.scss";
|
|
|
|
type Props = {
|
|
menu: Array<{
|
|
label: string;
|
|
path: string;
|
|
}>;
|
|
};
|
|
|
|
const Menu: React.FC<Props> = ({ menu }: Props) => (
|
|
<nav className={`${styles.menu} hideInPrintView`}>
|
|
<ul className={styles.list}>
|
|
{menu?.map((item) => (
|
|
<li className={styles.item} key={item.path}>
|
|
<Link to={item.path} className={styles.link} activeClassName={styles.active}>
|
|
{item.label}
|
|
</Link>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</nav>
|
|
);
|
|
|
|
export default Menu;
|