45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import { _ } from "@/lib/translation"
|
|
|
|
import Image from "@/components/Image"
|
|
import Button from "@/components/TempDesignSystem/Button"
|
|
import Link from "@/components/TempDesignSystem/Link"
|
|
import Title from "@/components/Title"
|
|
|
|
import Contact from "./Contact"
|
|
|
|
import styles from "./joinLoyalty.module.css"
|
|
|
|
import type { JoinLoyaltyContact } from "@/types/requests/loyaltyPage"
|
|
|
|
export default function JoinLoyaltyContact({
|
|
block,
|
|
}: {
|
|
block: JoinLoyaltyContact["join_loyalty_contact"]
|
|
}) {
|
|
return (
|
|
<div className={styles.container}>
|
|
<div className={styles.wrapper}>
|
|
{block.title && <Title level="h3">{block.title}</Title>}
|
|
<Image
|
|
alt="Scandic Friends"
|
|
className={styles.image}
|
|
height={65}
|
|
src="/_static/icons/scandic-friends.png"
|
|
width={203}
|
|
/>
|
|
{block.preamble && <p className={styles.preamble}>{block.preamble}</p>}
|
|
<Button intent="primary">
|
|
<span>{_("Join Scandic Friends")}</span>
|
|
</Button>
|
|
<div className={styles.linkContainer}>
|
|
<Link href="/login" className={styles.logoutLink}>
|
|
{_("Already a friend?")} <br />
|
|
{_("Click here to log in")}
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
{block.contact && <Contact contactBlock={block.contact} />}
|
|
</div>
|
|
)
|
|
}
|