feat(SW-185): Added images for app stores

This commit is contained in:
Pontus Dreij
2024-08-21 14:51:33 +02:00
parent e2d53c4e01
commit d72080ffe3
4 changed files with 76 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
import Image from "@/components/Image"
import Link from "@/components/TempDesignSystem/Link"
import styles from "./secondarynav.module.css"
@@ -7,7 +8,15 @@ export default async function FooterSecondaryNav({
}: {
secondaryLinks: Record<
string,
{ title: string; links: Array<{ id: string; href: string; title: string }> }
{
title: string
links: Array<{
id: string
href: string
title: string
image?: { src: string }
}>
}
>
}) {
return (
@@ -23,7 +32,16 @@ export default async function FooterSecondaryNav({
href={link.href}
className={styles.secondaryNavigationLink}
>
{link.title}
{link.image ? (
<Image
src={link.image.src}
alt={link.title}
width={125}
height={40}
/>
) : (
link.title
)}
</Link>
</li>
))}