Files
web/apps/scandic-web/components/MyPages/Surprises/Card.tsx
Matilda Landström 2fee29f3f9 Merged in fix/SW-1561-hotelpage-ui (pull request #2542)
Fix(SW-1561): Hotelpage design and token update

* fix(SW-1561): fix sidepeek subtitle

* fix(SW-1561): update mapCard to new tokens and update styling

* fix(SW-1561): correct Typography lowcase titles


Approved-by: Anton Gunnarsson
2025-07-10 14:13:47 +00:00

34 lines
789 B
TypeScript

import { useIntl } from "react-intl"
import { Typography } from "@scandic-hotels/design-system/Typography"
import Image from "@/components/Image"
import styles from "./surprises.module.css"
import type { CardProps } from "@/types/components/blocks/surprises"
export default function Card({ title, children }: CardProps) {
const intl = useIntl()
return (
<div className={styles.content}>
<Image
src="/_static/img/rewards/loyalty-award.png"
width={113}
height={125}
alt={intl.formatMessage({
defaultMessage: "Surprise!",
})}
/>
<header>
<Typography variant="Title/smLowCase">
<h4 className={styles.title}>{title}</h4>
</Typography>
</header>
{children}
</div>
)
}