feat(SW-3520): Updated the footer * feat(SW-3520): Updated links to route to scandic web * feat(SW-3520): Updated the footer with language switcher * feat(SW-3520): Updated the Contact-us link and removed double slash Approved-by: Anton Gunnarsson
11 lines
396 B
TypeScript
11 lines
396 B
TypeScript
import type { Lang } from "@scandic-hotels/common/constants/language"
|
|
import type { LangRoute } from "@scandic-hotels/common/constants/routes/langRoute"
|
|
|
|
export function routeToScandicWeb(route: LangRoute) {
|
|
const url = `https://www.scandichotels.com`
|
|
return Object.entries(route).reduce((acc, [key, value]) => {
|
|
acc[key as Lang] = `${url}${value}`
|
|
return acc
|
|
}, {} as LangRoute)
|
|
}
|