"use client" import Image from "next/image" import Caption from "@scandic-hotels/design-system/Caption" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { JsonToHtml } from "@scandic-hotels/design-system/JsonToHtml" import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" import Link from "@scandic-hotels/design-system/OldDSLink" import Subtitle from "@scandic-hotels/design-system/Subtitle" import Title from "@scandic-hotels/design-system/Title" 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 && ( )}
) } 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}
) }