42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import Link from "@/components/TempDesignSystem/Link"
|
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
|
|
|
import styles from "./secondarynav.module.css"
|
|
|
|
import { FooterSecondaryNavProps } from "@/types/components/footer/navigation"
|
|
|
|
export default function FooterSecondaryNav({
|
|
secondaryLinks,
|
|
}: FooterSecondaryNavProps) {
|
|
return (
|
|
<div className={styles.secondaryNavigation}>
|
|
{secondaryLinks.map((link) => (
|
|
<nav className={styles.secondaryNavigationGroup} key={link.title}>
|
|
<Body color="peach80" textTransform="uppercase">
|
|
{link.title}
|
|
</Body>
|
|
<ul className={styles.secondaryNavigationList}>
|
|
{link.links.map((link) => (
|
|
<li key={link.id} className={styles.secondaryNavigationItem}>
|
|
{link.isExternal ? (
|
|
<a
|
|
href={link.href}
|
|
key={link.title}
|
|
target={link.openInNewTab ? "_blank" : "_self"}
|
|
>
|
|
{link.title}
|
|
</a>
|
|
) : (
|
|
<Link href={link.href} key={link.title}>
|
|
{link.title}
|
|
</Link>
|
|
)}
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</nav>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|