import React from "react" import { Typography } from "@scandic-hotels/design-system/Typography" import { dtmcLogin } from "@/constants/routes/dtmc" import { login } from "@/constants/routes/handleAuth" import { signup } from "@/constants/routes/signup" import { auth } from "@/auth" import ButtonLink from "@/components/ButtonLink" import { getIntl } from "@/i18n" import { getLang } from "@/i18n/serverContext" import { isValidSession } from "@/utils/session" import styles from "./callToActions.module.css" export default async function EmployeeBenefitsCallToActions() { const session = await auth() const intl = await getIntl() const lang = await getLang() const loginAndLinkURL = `${login[lang]}?redirectTo=${encodeURIComponent(dtmcLogin[lang])}` if (!isValidSession(session)) { return ( <>
{intl.formatMessage({ defaultMessage: "Already a Scandic Friends member?", })}
{intl.formatMessage({ defaultMessage: "Don't have a Scandic Friends account yet?", })}