"use client" import Image from "next/image" import { useState } from "react" import { Checkbox as AriaCheckbox } from "react-aria-components" import { useIntl } from "react-intl" import { Button } from "@scandic-hotels/design-system/Button" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import ScandicLogoIcon from "@scandic-hotels/design-system/Icons/ScandicLogoIcon" import { Typography } from "@scandic-hotels/design-system/Typography" import { employeeBenefits } from "@/constants/routes/dtmc" import ButtonLink from "@/components/ButtonLink" import useLang from "@/hooks/useLang" import styles from "./linkEmploymentPage.module.css" export default function LinkEmploymentPage() { const lang = useLang() const intl = useIntl() const [isChecked, setIsChecked] = useState(false) const linkMyEmploymentText = intl.formatMessage({ defaultMessage: "Link my employment", }) return (

{intl.formatMessage({ defaultMessage: "Link your employment to access benefits", })}

{({ isSelected: isAriaSelected }) => ( <> {isAriaSelected && ( )} {intl.formatMessage({ defaultMessage: "I accept the terms and conditions", })} )}

{intl.formatMessage( { defaultMessage: "By accepting the {termsLink}, I agree to link my employment to access benefits. The connection will remain active during my employment or until I opt out by sending an email to Scandic's customer service.", }, { termsLink: ( // TODO: Update with actual URL for terms and conditions. {intl.formatMessage({ defaultMessage: "Scandic Family Terms and Conditions", })} ), } )}

{isChecked ? ( {linkMyEmploymentText} ) : ( )}
) }