import { getProfileSafely } from "@/lib/trpc/memoizedRequests" import { SurpriseIcon } from "@/components/Icons" import Image from "@/components/Image" import Button from "@/components/TempDesignSystem/Button" import Link from "@/components/TempDesignSystem/Link" import BiroScript from "@/components/TempDesignSystem/Text/BiroScript" import Body from "@/components/TempDesignSystem/Text/Body" import Title from "@/components/TempDesignSystem/Text/Title" import styles from "./joinScandicFriends.module.css" import type { JoinScandicFriends } from "@/types/trpc/routers/contentstack/startPage" interface JoinScandicFriendsProps { content: JoinScandicFriends } export default async function JoinScandicFriends({ content, }: JoinScandicFriendsProps) { const session = await getProfileSafely() if (session) { return null } const { show_header, show_usp, usp, primary_button } = content return (
{content.image ? ( {content.image.title} ) : ( )}
{show_header ? (
{content.scripted_top_title}
{content.title}
) : null} {content.preamble} {show_usp && usp.length ? (
    {usp.map((uspBullet) => (
  • {uspBullet}
  • ))}
) : null}
{content.has_primary_button ? (
) : null}
) }