feat(SW-185): Added images for app stores
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user