Files
web/apps/scandic-web/components/Sidebar/JoinLoyalty/ReadMore/index.tsx
Joakim Jäderberg aafad9781f Merged in feat/lokalise-rebuild (pull request #2993)
Feat/lokalise rebuild

* chore(lokalise): update translation ids

* chore(lokalise): easier to switch between projects

* chore(lokalise): update translation ids

* .

* .

* .

* .

* .

* .

* chore(lokalise): update translation ids

* chore(lokalise): update translation ids

* .

* .

* .

* chore(lokalise): update translation ids

* chore(lokalise): update translation ids

* .

* .

* chore(lokalise): update translation ids

* chore(lokalise): update translation ids

* chore(lokalise): new translations

* merge

* switch to errors for missing id's

* merge

* sync translations


Approved-by: Linus Flood
2025-10-22 11:00:03 +00:00

57 lines
1.5 KiB
TypeScript

import { membershipTermsAndConditions } from "@scandic-hotels/common/constants/routes/membershipTermsAndConditions"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import Link from "@scandic-hotels/design-system/Link"
import Subtitle from "@scandic-hotels/design-system/Subtitle"
import { faq } from "@/constants/webHrefs"
import { getIntl } from "@/i18n"
import { getLang } from "@/i18n/serverContext"
import styles from "./readMore.module.css"
export default async function ReadMore() {
const [intl, lang] = await Promise.all([getIntl(), getLang()])
const links = [
{
href: faq[lang],
text: intl.formatMessage({
id: "common.faq",
defaultMessage: "FAQ",
}),
},
{
href: membershipTermsAndConditions[lang],
text: intl.formatMessage({
id: "loyalty.membershipTermsAndConditions",
defaultMessage: "Membership terms and conditions",
}),
},
]
return (
<article className={styles.wrapper}>
<Subtitle>
{intl.formatMessage({
id: "common.readMore",
defaultMessage: "Read more",
})}
</Subtitle>
<div className={styles.links}>
{links.map((link) => (
<Link
key={link.text}
size="small"
className={styles.link}
href={link.href}
>
<MaterialIcon icon="arrow_forward" color="CurrentColor" size={20} />
{link.text}
</Link>
))}
</div>
</article>
)
}