Files
web/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/UnlinkSAS.tsx
Matilda Landström 5de2a993a7 Merged in feat/SW-1711-switch-icons (pull request #1558)
Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons.

Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-03-27 09:42:52 +00:00

37 lines
1.1 KiB
TypeScript

"use client"
import { useParams } from "next/navigation"
import { useIntl } from "react-intl"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons"
import Dialog from "@/components/Dialog"
import Button from "@/components/TempDesignSystem/Button"
import type { LangParams } from "@/types/params"
export function UnlinkSAS() {
const intl = useIntl()
const params = useParams<LangParams>()
return (
<Dialog
titleText={intl.formatMessage({
id: "Are you sure you want to unlink your account?",
})}
bodyText={intl.formatMessage({
id: "This will remove any level upgrades and you will no longer be able to transfer points from SAS.",
})}
cancelButtonText={intl.formatMessage({ id: "Go back" })}
proceedText={intl.formatMessage({ id: "Yes, unlink my accounts" })}
proceedHref={`/${params.lang}/sas-x-scandic/login?intent=unlink`}
trigger={
<Button intent="text" theme="base">
{intl.formatMessage({ id: "Unlink accounts" })}
<MaterialIcon icon="chevron_right" size={20} color="CurrentColor" />
</Button>
}
/>
)
}