import React from "react";
import Link from "component/link";
const SubHeader = props => {
const { subLinks, currentPage, navigate, modifier } = props;
const links = [];
for (let link of Object.keys(subLinks)) {
links.push(
navigate(`/${link}`, event)}
key={link}
className={
link == currentPage ? "sub-header-selected" : "sub-header-unselected"
}
>
{subLinks[link]}
);
}
return (
);
};
export default SubHeader;