feat(SW-185): Refactor mocked data

This commit is contained in:
Pontus Dreij
2024-08-22 16:08:11 +02:00
parent 6f28aee349
commit df0a9d661b
5 changed files with 92 additions and 76 deletions

View File

@@ -2,6 +2,8 @@ export type FooterMainNav = {
id: string
href: string
title: string
openInNewTab: boolean
isExternal: boolean
}
export type FooterMainNavProps = {
mainLinks: FooterMainNav[]
@@ -11,16 +13,12 @@ export type FooterSecondaryNav = {
id: string
href: string
title: string
image?: {
src: string
}
openInNewTab: boolean
isExternal: boolean
}
export type FooterSecondaryNavProps = {
secondaryLinks: Record<
string,
{
title: string
links: FooterSecondaryNav[]
}
>
secondaryLinks: {
title: string
links: FooterSecondaryNav[]
}[]
}