interface HeaderLink { name: string; linkTo: string; newTab?: boolean; } const headerLinks: Array = [ { name: "Home", linkTo: "/", }, { name: "Blog", linkTo: "posts/", }, { name: "Projects", linkTo: "projects", }, { name: "Contact", linkTo: "contact/", }, ]; export default function Header() { return (
{headerLinks.map((l) => { const newTab = l.newTab ? "_blank" : "_self"; return (
{l.name}
); })}
); }