"use client" import Image from "next/image" import ButtonLink from "@scandic-hotels/design-system/ButtonLink" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { JsonToHtml } from "@scandic-hotels/design-system/JsonToHtml" import Link from "@scandic-hotels/design-system/OldDSLink" import { Typography } from "@scandic-hotels/design-system/Typography" import { Section } from "@/components/Section" import styles from "./sasTierComparison.module.css" import type { ReactNode } from "react" import type { SasTierComparison } from "@/types/trpc/routers/contentstack/partner" type TierComparisonProps = { title?: string preamble?: string tierComparison: NonNullable } export function SasTierComparison({ title, preamble, tierComparison, }: TierComparisonProps) { return (

{title}

{preamble &&

{preamble}

}
Scandic logo SAS logo {tierComparison.scandic_column_title} {tierComparison.sas_column_title}
{tierComparison.tier_matches.map((tierMatch, i) => ( ))}
{tierComparison.cta?.link && ( {tierComparison.cta.title || tierComparison.cta.link.title} )}
) } type TierMatch = NonNullable["tier_matches"][number] function TierDetails({ children, tierMatch, }: { children: React.ReactNode tierMatch: TierMatch }) { return (

{tierMatch.scandic_friends_tier_name}

{tierMatch.sas_eb_tier_name}

{tierMatch.title}

{children}
{tierMatch.link?.href && ( {tierMatch.link.title} )}
) } function ReadMoreLink({ href, children, }: { href: string children: ReactNode }) { return ( {children} ) } function ColumnTitle({ children }: { children?: ReactNode }) { return (
{children}
) }